Favor consistent style that avoids explicit dom_id calls
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<%= turbo_stream.before dom_id(@card, :new_comment) do %>
|
||||
<%= turbo_stream.before [ @card, :new_comment ] do %>
|
||||
<%= render "cards/comments/comment", comment: @comment %>
|
||||
<% end %>
|
||||
|
||||
<%= turbo_stream.update dom_id(@card, :new_comment) do %>
|
||||
<%= turbo_stream.update [ @card, :new_comment ] do %>
|
||||
<%= render "cards/comments/new", card: @card %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user