We want a resource, named account, using the users controller.

Not a resource with path named users, and using the account controller...
master
Rémi Vanicat 2010-11-17 17:21:29 +01:00
parent f5ba33ce67
commit 63c0ae35c0
1 changed files with 1 additions and 1 deletions

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