Class: PagesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/pages_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



2
3
4
# File 'app/controllers/pages_controller.rb', line 2

def show
  @page = ContentBlock.find_or_create_by(name: params[:id])
end