Sha256: b2c50c6a598f92c2f34fbe0c2b08f82d9d18c07db3098d6201df9cf62d5f11c5

Contents?: true

Size: 897 Bytes

Versions: 1

Compression:

Stored size: 897 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  
  map.namespace :cms_admin, :path_prefix => 'cms-admin' do |cms_admin|
    cms_admin.connect '/', :controller => 'pages', :action => 'index'
    cms_admin.resources :layouts,
      :member => {  :children     => :any,
                    :reorder      => :any }
    cms_admin.resources :pages,
      :member => {  :children     => :any,
                    :form_blocks  => :any,
                    :reorder      => :any }
    cms_admin.resources :snippets,
      :collection => { :reorder   => :any }
    cms_admin.resources :attachments
    cms_admin.resources :categories,
      :member => {  :children => :any }
    cms_admin.resources :sections, :only => [ :show ]
  end
  
  map.with_options :controller => 'cms_content' do |cms|
    cms.connect '/sitemap.xml', :action => 'sitemap'
    cms.connect '*path', :action => 'show'
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-0.0.18 config/cms_routes.rb