Sha256: 211fe4f239f258eaa8346561f386173aca2cb25e6ffe6b2a84bf07de196a1749
Contents?: true
Size: 590 Bytes
Versions: 4
Compression:
Stored size: 590 Bytes
Contents
class Ecm::Cms::PageController < ApplicationController # inject locale to params and vice versa include RailsTools::I18nController # add the page resolver include Ecm::Cms::ControllerExtensions::PageResolver # avoid error 500 on missing template rescue_from ActionView::MissingTemplate do respond_to do |format| format.html { render(:file => "#{Rails.root}/public/404.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