Sha256: 0a5d641cb48ac7e2d6f356f27901a53048c9972dcb036d8fa3ecc7b5c90d8c5f
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
class ActionDispatch::Routing::Mapper def comfy_route_cms(options = {}) namespace :cms, :path => options[:path] do get 'cms-css/:site_id/:identifier' => 'content#render_css', :as => 'render_css' get 'cms-js/:site_id/:identifier' => 'content#render_js', :as => 'render_js' if options[:sitemap] get '(:cms_path)/sitemap' => 'content#render_sitemap', :as => 'render_sitemap', :constraints => {:format => /xml/}, :format => :xml end get '/' => 'content#render_html', :as => 'render_html', :path => "(*cms_path)" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comfortable_mexican_sofa-1.11.0 | lib/comfortable_mexican_sofa/routes/cms.rb |