Class: Cambium::PagesController

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

Instance Method Summary collapse

Instance Method Details

#homeObject



8
9
10
11
12
13
14
15
# File 'app/controllers/cambium/pages_controller.rb', line 8

def home
  @page = Cambium::Page.home
  if @page.nil?
    render 'home_missing'
  else
    render :inline => @page.template.content, :layout => 'application'
  end
end

#showObject



3
4
5
6
# File 'app/controllers/cambium/pages_controller.rb', line 3

def show
  @page = Cambium::Page.find_by_page_path(request.path)
  render :inline => @page.template.content, :layout => 'application'
end