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

29 lines
958 B
Ruby
Raw Normal View History

Rails::Application.routes.draw do
resources :users, :only => [:index] do
get :expire, :on => :member
end
resources :admins, :only => [:index]
devise_for :users
devise_for :admin, :path => "admin_area", :controllers => { :sessions => "sessions" }, :skip => :passwords
devise_for :accounts, :singular => "manager", :path_prefix => ":locale",
:class_name => "User", :path_names => {
:sign_in => "login", :sign_out => "logout",
:password => "secret", :confirmation => "verification",
2010-05-16 06:14:02 -04:00
:unlock => "unblock", :sign_up => "register",
:registration => "management"
2010-01-13 13:45:24 -05:00
}
2009-10-12 20:49:51 -04:00
match "/admin_area/home", :to => "admins#index", :as => :admin_root
match "/sign_in", :to => "devise/sessions#new"
# Dummy route for new admin pasword
match "/anywhere", :to => "foo#bar", :as => :new_admin_password
root :to => "home#index"
2010-05-24 17:02:54 -04:00
authenticate(:admin) do
match "/private", :to => "home#private", :as => :private
end
end