Sha256: d858bc75941c5cd6292f70a96ec388de06207065e7cfe1128833f291f853bdb7
Contents?: true
Size: 392 Bytes
Versions: 1
Compression:
Stored size: 392 Bytes
Contents
class Cambium::PagesController < ApplicationController def show @page = Cambium::Page.find_by_page_path(request.path) render :inline => @page.template.content, :layout => 'application' end def home @page = Cambium::Page.home if @page.nil? render 'home_missing' else render :inline => @page.template.content, :layout => 'application' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cambium-1.3.0 | app/controllers/cambium/pages_controller.rb |