show page for pages (a start)

This commit is contained in:
2022-12-16 16:50:56 +02:00
parent 54e8c287ca
commit 6dbddce173
11 changed files with 79 additions and 25 deletions

View File

@ -1,11 +1,15 @@
module Merged
class PagesController < MergedController
before_action :set_page, only: %i[ update destroy ]
before_action :set_page, only: %i[ update destroy show ]
def index
@pages = Page.all
end
def show
end
def create
name = params[:name]
message = Page.check_name(name)