class SiteController < ApplicationController
layout 'site', :except => [:key, :permalink]
+ layout false, :only => [:key, :permalink]
before_filter :authorize_web
before_filter :set_locale
def copyright
@locale = params[:copyright_locale] || I18n.locale
end
+
+ def preview
+ render :text => RichText.new(params[:format], params[:text]).to_html
+ end
end