Sha256: 458bda8731235459efad34d346fbf5873b4b215626244f7649baf2bef4bf0bda

Contents?: true

Size: 822 Bytes

Versions: 4

Compression:

Stored size: 822 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  map.devise_for :users
  map.devise_for :admin, :as => 'admin_area'
  map.devise_for :account, :path_names => {
    :sign_in => 'login', :sign_out => 'logout', :password => 'secret', :confirmation => 'verification'
  }
  map.devise_for :organizers, :scope => 'manager',
                              :path_prefix => '/:locale',
                              :requirements => { :extra => 'value' }

  map.resources :users, :only => :index
  map.resources :admins, :only => :index
  map.root :controller => :home

  map.connect '/admin_area/password/new', :controller => "passwords", :action => "new"
  map.admin_root '/admin_area/home', :controller => "admins", :action => "index"

  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise-0.6.0 test/rails_app/config/routes.rb
devise-0.5.6 test/rails_app/config/routes.rb
devise-0.5.5 test/rails_app/config/routes.rb
devise-0.5.4 test/rails_app/config/routes.rb