Sha256: ac3b923a6f4daeb52db833449a22e7dc52be0b849f1de90a4f1a5ee3fd55c3b4
Contents?: true
Size: 580 Bytes
Versions: 7
Compression:
Stored size: 580 Bytes
Contents
class PagesController < ApplicationController include Beef::Pages::HelperMethods def show @page = Page.published.find_by_permalink(params[:id]) @page_title = @page.title @page_description = @page.description @page_keywords = @page.tag_list render :template => "pages/templates/#{(@page.template || get_template_names.first)}" end def preview @page = Page.new(session[:page_preview]) @page.id = 0 session[:page_preview] = nil render :template => "pages/templates/#{(@page.template || get_template_names.first)}" end end
Version data entries
7 entries across 7 versions & 1 rubygems