Sha256: 0a19c17373a94d0ab504d3cbf85e0511211a8815026bbdd78f2053e62df82876
Contents?: true
Size: 502 Bytes
Versions: 4
Compression:
Stored size: 502 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]) session[:page_preview] = nil render :action => "show" end end
Version data entries
4 entries across 4 versions & 1 rubygems