This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map.resources :users, :except=>[:new, :create] | |
map.resources :users, :only=>[:new,:create], :as => :register | |
# Creates these routes | |
users GET /users(.:format) {:controller=>"users", :action=>"index"} | |
edit_user GET /users/:id/edit(.:format) {:controller=>"users", :action=>"edit"} | |
user GET /users/:id(.:format) {:controller=>"users", :action=>"show"} | |
PUT /users/:id(.:format) {:controller=>"users", :action=>"update"} | |
DELETE /users/:id(.:format) {:controller=>"users", :action=>"destroy"} | |
POST /register(.:format) {:controller=>"users", :action=>"create"} |
NewerOlder