start on section edit (without edit)

This commit is contained in:
2022-11-26 19:07:20 +02:00
parent 29183a3394
commit 1823f5cb3e
23 changed files with 70 additions and 5 deletions

View File

@ -1,4 +1,13 @@
module Cms
class SectionsController < CmsController
before_action :set_page, only: %i[ show edit update destroy ]
private
def set_page
@page = Page.find(params[:page_id])
@section = @page.find_section( params[:id] )
end
end
end