Make stuff sortable

This commit is contained in:
david 2024-11-11 04:04:13 +01:00
parent 50e853098b
commit ee5dbcf33e
21 changed files with 161 additions and 28 deletions

View file

@ -35,7 +35,12 @@ class PagesController < ApplicationController
# PATCH/PUT /pages/1
def update
if @page.update(page_params)
redirect_to @page, notice: "Page was successfully updated.", status: :see_other
respond_to do |format|
format.turbo_stream
format.html do
redirect_to @page, notice: "Page was successfully updated.", status: :see_other
end
end
else
render :edit, status: :unprocessable_entity
end