Make checklist entries sortable by d&d
This commit is contained in:
parent
1e1d80a2c3
commit
7acc0559ae
10 changed files with 98 additions and 20 deletions
|
|
@ -33,8 +33,13 @@ class ChecklistEntriesController < ApplicationController
|
|||
# PATCH/PUT /checklist_entries/1
|
||||
def update
|
||||
if @checklist_entry.update(checklist_entry_params)
|
||||
redirect_to @checklist_entry.checklist, notice: "Checklist entry was successfully updated.",
|
||||
status: :see_other
|
||||
respond_to do |format|
|
||||
format.turbo_stream
|
||||
format.html do
|
||||
redirect_to @checklist_entry.checklist, notice: "Checklist entry was successfully updated.",
|
||||
status: :see_other
|
||||
end
|
||||
end
|
||||
else
|
||||
render :edit, status: :unprocessable_entity
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue