Sha256: c2f3c60bab2d6c6b1898c13fd06dc5b464103479423466675a48d524f611bc87

Contents?: true

Size: 619 Bytes

Versions: 12

Compression:

Stored size: 619 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]
    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

12 entries across 12 versions & 1 rubygems

Version Path
liquid_cms-0.2.0.12 config/routes.rb
liquid_cms-0.2.0.11 config/routes.rb
liquid_cms-0.2.0.10 config/routes.rb
liquid_cms-0.2.0.9 config/routes.rb
liquid_cms-0.2.0.8 config/routes.rb
liquid_cms-0.2.0.7 config/routes.rb
liquid_cms-0.2.0.6 config/routes.rb
liquid_cms-0.2.0.5 config/routes.rb
liquid_cms-0.2.0.4 config/routes.rb
liquid_cms-0.2.0.3 config/routes.rb
liquid_cms-0.2.0.2 config/routes.rb
liquid_cms-0.2.0 config/routes.rb