Change 'Add unit' link to turbo_stream

This commit is contained in:
2024-01-04 23:11:33 +01:00
parent c96b646087
commit 6d9f4918f1
4 changed files with 11 additions and 14 deletions

View File

@@ -0,0 +1,8 @@
<%= 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 %>