Class: Cambium::PagesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Cambium::PagesController
- Defined in:
- app/controllers/cambium/pages_controller.rb
Instance Method Summary collapse
Instance Method Details
#home ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/controllers/cambium/pages_controller.rb', line 15 def home if @page.nil? render 'home_missing' else render :inline => @page.template.content, :layout => 'application' end end |
#show ⇒ Object
11 12 13 |
# File 'app/controllers/cambium/pages_controller.rb', line 11 def show render :inline => @page.template.content, :layout => 'application' end |