Sha256: 5571365d6d0bdfb239003d96c4a6ea6f62d89ac64875860368df257e27561350

Contents?: true

Size: 1.69 KB

Versions: 52

Compression:

Stored size: 1.69 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 :users
  end
  map.preview 'admin/preview', :controller => 'admin/pages', :action => 'preview', :conditions => {:method => [:post, :put]}

  map.namespace :admin do |admin|
    admin.resource :preferences
    admin.resource :configuration, :controller => 'configuration'
    # admin.resources :settings
    admin.resources :extensions, :only => :index
    admin.resources :page_parts
    admin.resources :page_fields
    admin.reference '/reference/:type.:format', :controller => 'references', :action => 'show', :conditions => {:method => :get}
  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

  # 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

52 entries across 52 versions & 2 rubygems

Version Path
trusty-cms-2.0.11 config/routes.rb.rails2
trusty-cms-2.0.10.pre.beta config/routes.rb.rails2
trusty-cms-2.0.9.pre.beta config/routes.rb.rails2
trusty-cms-2.0.8.pre.beta config/routes.rb.rails2
trusty-cms-2.0.7.pre.beta config/routes.rb.rails2
trusty-cms-2.0.5.pre.beta config/routes.rb.rails2
trusty-cms-2.0.4.pre.beta config/routes.rb.rails2
trusty-cms-2.0.3.pre.beta config/routes.rb.rails2
trusty-cms-2.0.2.pre.beta config/routes.rb.rails2
trusty-cms-2.0.1.pre.beta config/routes.rb.rails2
trusty-cms-2.0.0.pre.beta config/routes.rb.rails2
trusty-cms-1.2.29 config/routes.rb.rails2
trusty-cms-1.2.28 config/routes.rb.rails2
trusty-cms-1.1.28 config/routes.rb.rails2
trusty-cms-1.1.27 config/routes.rb.rails2
trusty-cms-1.1.26 config/routes.rb.rails2
trusty-cms-1.1.25 config/routes.rb.rails2
trusty-cms-1.1.24 config/routes.rb.rails2
trusty-cms-1.1.23 config/routes.rb.rails2
trusty-cms-1.1.22 config/routes.rb.rails2