Class: StaticController
- Inherits:
-
Ecrire::ThemeController
- Object
- ActionController::Base
- ApplicationController
- Ecrire::ThemeController
- StaticController
- Defined in:
- lib/ecrire/app/controllers/static_controller.rb
Overview
The Controller that renders static pages
It looks for a a template matching the path provided.
Instance Method Summary collapse
Methods inherited from ApplicationController
#current_user, #signed_in?, #url
Instance Method Details
#show ⇒ Object
7 8 9 |
# File 'lib/ecrire/app/controllers/static_controller.rb', line 7 def show render "static/#{params[:view].to_s}" end |