Sha256: 545409a646c00c1a033a5809b5c7c1139c558432602a6c749a1357133b1c4f4b
Contents?: true
Size: 739 Bytes
Versions: 4
Compression:
Stored size: 739 Bytes
Contents
class Ecm::Cms::PageController < Ecm::Cms::Configuration.base_controller.constantize # add the page resolver include Ecm::Cms::ControllerExtensions::PageResolver include Ecm::Cms::ControllerExtensions::PartialResolver # avoid error 500 on missing template rescue_from ActionView::MissingTemplate do respond_to do |format| format.html { render(:file => "#{Rails.root}/public/404", :formats => [:html], :layout => false, :status => 404 ) } format.xml { head :not_found } format.any { head :not_found } end end def respond render :template => params[:page] end end
Version data entries
4 entries across 4 versions & 1 rubygems