Sha256: 1954f1e0d3567ad7adf9061d0c495a38ebaa7480d8d740923e4179307b3b52f8

Contents?: true

Size: 653 Bytes

Versions: 4

Compression:

Stored size: 653 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  map.namespace :cms do |cms|
    cms.resources :components, :only => [], :collection => {:upload => :post}
    cms.connect 'components/:action/*url', :controller => 'components'
    cms.resources :assets, :except => :index
    cms.resources :pages, :except => [:index, :show], :collection => {:search => :any}
    cms.documentation 'documentation', :controller => 'documentation', :action => 'index'
    cms.connect ':path/:id.:format', :controller => 'pages', :action => 'page_asset', :requirements => {:path => /javascripts|stylesheets/}

    cms.root :controller => :main, :action => :index
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
liquid_cms-0.2.2.0 config/routes.rb
liquid_cms-0.2.1.1 config/routes.rb
liquid_cms-0.2.1.0 config/routes.rb
liquid_cms-0.2.0.13 config/routes.rb