Module: Mintaka::StaticPage
- Extended by:
- ActiveSupport::Concern
- Included in:
- PagesController
- Defined in:
- app/controllers/concerns/mintaka/static_page.rb
Instance Method Summary collapse
Instance Method Details
#invalid_page ⇒ Object
22 23 24 |
# File 'app/controllers/concerns/mintaka/static_page.rb', line 22 def invalid_page raise ActionController::RoutingError, "No such page: #{params[:id]}" end |
#show ⇒ Object
18 19 20 |
# File 'app/controllers/concerns/mintaka/static_page.rb', line 18 def show render template: current_page end |