Class: Cambium::PagesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/cambium/pages_controller.rb

Instance Method Summary collapse

Instance Method Details

#homeObject



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

#showObject



11
12
13
# File 'app/controllers/cambium/pages_controller.rb', line 11

def show
  render :inline => @page.template.content, :layout => 'application'
end