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_pageObject

Raises:

  • (ActionController::RoutingError)


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

#showObject



18
19
20
# File 'app/controllers/concerns/mintaka/static_page.rb', line 18

def show
  render template: current_page
end