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

18 lines
697 B
Ruby

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, :singular => 'manager'
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