1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00
heartcombo--devise/test/rails_app/config/routes.rb

21 lines
896 B
Ruby
Raw Normal View History

ActionController::Routing::Routes.draw do |map|
2009-10-12 20:49:51 -04:00
map.devise_for :users
map.devise_for :admin, :as => 'admin_area'
map.devise_for :accounts, :scope => 'manager', :path_prefix => ':locale',
2010-01-13 13:45:24 -05:00
:class_name => "User", :requirements => { :extra => 'value' }, :path_names => {
:sign_in => 'login', :sign_out => 'logout', :password => 'secret',
:confirmation => 'verification', :unlock => 'unblock'
}
2009-10-12 20:49:51 -04:00
2009-11-24 08:52:13 -05:00
map.resources :users, :only => [:index], :member => { :expire => :get }
map.resources :admins, :only => :index
map.root :controller => :home
2009-10-12 20:49:51 -04:00
map.connect '/admin_area/password/new', :controller => "passwords", :action => "new"
map.admin_root '/admin_area/home', :controller => "admins", :action => "index"
map.connect '/sign_in', :controller => "sessions", :action => "new"
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end