Fix layout rendering for turbo_streams

Closes #22
This commit is contained in:
2024-02-13 20:48:00 +01:00
parent 8b81ae2dc5
commit 3a3ae71320
4 changed files with 14 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
<% link_id = dom_id(@unit.base || @unit, :add) %>
<%= turbo_stream.disable link_id -%>
<%= turbo_stream.update :unit_form_frame do %>
<%= turbo_stream.replace :unit_form do %>
<%= form_with model: @unit, html: {id: :unit_form} do %>
<% end %>
<% end %>