Match template name to container id

This commit is contained in:
David Heinemeier Hansson
2025-04-17 14:14:03 +02:00
parent fc0cf3917f
commit bddd624e41
3 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
<%= turbo_stream.replace [ @card, :pin_button ], partial: "cards/pins/pin", locals: { card: @card } %>
<%= turbo_stream.replace [ @card, :pin_button ], partial: "cards/pins/pin_button", locals: { card: @card } %>
+1 -1
View File
@@ -1,3 +1,3 @@
<%= turbo_frame_tag dom_id(@card, :pin) do %>
<%= render "cards/pins/pin", card: @card %>
<%= render "cards/pins/pin_button", card: @card %>
<% end %>