We want a resource, named account, using the users controller.
Not a resource with path named users, and using the account controller...
This commit is contained in:
parent
f5ba33ce67
commit
63c0ae35c0
|
@ -1,5 +1,5 @@
|
||||||
ActionController::Routing::Routes.draw do
|
ActionController::Routing::Routes.draw do
|
||||||
resources :account, :as => "users"
|
resource :account, :controller => :users
|
||||||
match "login", :to => "user_sessions#new", :as => :login
|
match "login", :to => "user_sessions#new", :as => :login
|
||||||
match "authenticate", :to => "user_sessions#create", :as => :authenticate
|
match "authenticate", :to => "user_sessions#create", :as => :authenticate
|
||||||
match "logout", :to => "user_sessions#destroy", :as => :logout
|
match "logout", :to => "user_sessions#destroy", :as => :logout
|
||||||
|
|
Loading…
Reference in a new issue