Sha256: 4154bcc607b415a9014a8d999acdd577fc280f384238ac936a55d7e659c8fa4a

Contents?: true

Size: 705 Bytes

Versions: 10

Compression:

Stored size: 705 Bytes

Contents

Rails.application.routes.draw do
  
  namespace :cms_admin, :path => ComfortableMexicanSofa.config.admin_route_prefix, :except => :show do
    get '/' => redirect("/#{ComfortableMexicanSofa.config.admin_route_prefix}/pages")
    resources :pages do
      member do 
        match :form_blocks
      end
    end
    resources :sites
    resources :layouts
    resources :snippets
    resources :uploads
  end
  
  scope :controller => :cms_content do
    get '/cms-css/:id'  => :render_css,   :as => 'cms_css',   :format => 'css'
    get '/cms-js/:id'   => :render_js,    :as => 'cms_js',    :format => 'js'
    get '/'             => :render_html,  :as => 'cms_html',  :path => '(*cms_path)'
  end
  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.0.28 config/routes.rb
comfortable_mexican_sofa-1.0.27 config/routes.rb
comfortable_mexican_sofa-1.0.26 config/routes.rb
comfortable_mexican_sofa-1.0.25 config/routes.rb
comfortable_mexican_sofa-1.0.24 config/routes.rb
comfortable_mexican_sofa-1.0.23 config/routes.rb
comfortable_mexican_sofa-1.0.22 config/routes.rb
comfortable_mexican_sofa-1.0.21 config/routes.rb
comfortable_mexican_sofa-1.0.20 config/routes.rb
comfortable_mexican_sofa-1.0.19 config/routes.rb