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:
Rémi Vanicat 2010-11-17 17:21:29 +01:00
parent f5ba33ce67
commit 63c0ae35c0

View file

@ -1,5 +1,5 @@
ActionController::Routing::Routes.draw do
resources :account, :as => "users"
resource :account, :controller => :users
match "login", :to => "user_sessions#new", :as => :login
match "authenticate", :to => "user_sessions#create", :as => :authenticate
match "logout", :to => "user_sessions#destroy", :as => :logout