Sha256: c0e7ddbf71bfd33566f5c8f0d36eab66436c394b783e6d8ae57555de179c9db6

Contents?: true

Size: 1.62 KB

Versions: 16

Compression:

Stored size: 1.62 KB

Contents

ActionController::Routing::Routes.draw do |map|

  # Admin RESTful Routes
  map.namespace :admin, :member => { :remove => :get } do |admin|
    admin.resources :pages do |pages|
      pages.resources :children, :controller => "pages"
    end
    admin.resources :layouts
    admin.resources :snippets
    admin.resources :users
  end

  map.namespace :admin do |admin|
    admin.resource :preferences
    admin.resources :extensions
    admin.resources :page_parts
    admin.resources :references
  end

  # Admin Routes
  map.with_options(:controller => 'admin/welcome') do |welcome|
    welcome.admin          'admin',                              :action => 'index'
    welcome.welcome        'admin/welcome',                      :action => 'index'
    welcome.login          'admin/login',                        :action => 'login'
    welcome.logout         'admin/logout',                       :action => 'logout'
  end

  # Export Routes
  map.with_options(:controller => 'admin/export') do |export|
    export.export          'admin/export',                             :action => 'yaml'
    export.export_yaml     'admin/export/yaml',                        :action => 'yaml'
  end

  # Site URLs
  map.with_options(:controller => 'site') do |site|
    site.root                                                    :action => 'show_page', :url => '/'
    site.not_found         'error/404',                          :action => 'not_found'
    site.error             'error/500',                          :action => 'error'

    # Everything else
    site.connect           '*url',                               :action => 'show_page'
  end

end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 config/routes.rb
radiantcms-couchrest_model-0.2.2 config/routes.rb
radiantcms-couchrest_model-0.2.1 config/routes.rb
radiantcms-couchrest_model-0.2 config/routes.rb
radiantcms-couchrest_model-0.1.9 config/routes.rb
radiantcms-couchrest_model-0.1.8 config/routes.rb
radiantcms-couchrest_model-0.1.7 config/routes.rb
radiantcms-couchrest_model-0.1.6 config/routes.rb
radiantcms-couchrest_model-0.1.5 config/routes.rb
radiant-0.7.2 config/routes.rb
radiant-0.8.2 config/routes.rb
radiant-rc-0.9.0 config/routes.rb
radiant-0.8.1 config/routes.rb
radiant-0.7.0 config/routes.rb
radiant-0.7.1 config/routes.rb
radiant-0.8.0 config/routes.rb