Prefer explicit turbo stream templates
This commit is contained in:
@@ -3,11 +3,6 @@ class Collections::EntropiesController < ApplicationController
|
||||
|
||||
def update
|
||||
@collection.entropy.update!(entropy_params)
|
||||
|
||||
render turbo_stream: [
|
||||
turbo_stream.replace([ @collection, :entropy ], partial: "collections/edit/auto_close", locals: { collection: @collection }),
|
||||
turbo_stream_flash(notice: "Saved")
|
||||
]
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<%= turbo_stream.replace([ @collection, :entropy ], partial: "collections/edit/auto_close", locals: { collection: @collection }) %>
|
||||
<%= turbo_stream_flash(notice: "Saved") %>
|
||||
Reference in New Issue
Block a user