forked from fixin.me/fixin.me
13 lines
418 B
Plaintext
13 lines
418 B
Plaintext
<!-- NOTE: as of turbo-rails 2.0.0.pre.beta.1/turbo 8.0.0-beta.1
|
|
loading <form> through *.turbo_stream.erb does not autofocus -->
|
|
<%= turbo_frame_tag @unit do %>
|
|
<%= turbo_stream.update @unit do %>
|
|
<%= render partial: 'form', locals: {unit: @unit} %>
|
|
<% end %>
|
|
|
|
<%= turbo_stream.update :unit_form_frame do %>
|
|
<%= form_with model: @unit, html: {id: :unit_form} do %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|