Class: PagesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- PagesController
- Defined in:
- app/controllers/pages_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
4 5 6 |
# File 'app/controllers/pages_controller.rb', line 4 def show @page = ContentBlock.find_or_create_by(name: params[:id]) end |