config/routes.rb in protected-1.0.2 vs config/routes.rb in protected-1.0.3
- old
+ new
@@ -6,18 +6,18 @@
:passwords => "protected/passwords" },
:module => :devise
}
devise_scope :user do
- get "/users/sign_in", :to => "sessions#new", :as => "new_user_session"
+ get "sign_in", :to => "sessions#new", :as => "new_user_session"
post "sessions", :to => "sessions#create", :as => "user_session"
- get "/users/sign_out", :to => "sessions#destroy", :as => "destroy_user_session"
+ get "sign_out", :to => "sessions#destroy", :as => "destroy_user_session"
get 'first_login', :to => 'sessions#first_login', :as => 'first_login'
put 'update_first_login', :to => 'sessions#update_first_login', :as => 'update_first_login'
- put "/users/password", :to => "passwords#update", :as => "update_password"
- post "/users/password", :to => "passwords#create", :as => "create_password"
- get "/users/password/new", :to => "passwords#new", :as => "new_user_password"
- get "/users/password/edit", :to => "passwords#edit", :as => "edit_user_password"
+ put "password", :to => "passwords#update", :as => "update_password"
+ post "password", :to => "passwords#create", :as => "create_password"
+ get "password/new", :to => "passwords#new", :as => "new_user_password"
+ get "password/edit", :to => "passwords#edit", :as => "edit_user_password"
match 'not_authorized', :to => 'sessions#not_authorized'
end
resources :users, :only => [:edit, :update]
namespace :admin do