Sha256: a453c624fabde677dce778aca2e2794ea6ce12f5ad883913bc7d9c291a44917e
Contents?: true
Size: 346 Bytes
Versions: 1
Compression:
Stored size: 346 Bytes
Contents
class Spree::PageController < Spree::BaseController before_filter :get_page, :only => :index def show end private def get_page @page = Spree::Page.active.find_by_path(page_path) return raise ActionController::RoutingError.new(page_path) unless @page end def page_path params[:path] || "/" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_essential_cms-0.3.0.rc1 | app/controllers/spree/page_controller.rb |