Ar Chron wrote: > Controllers are customarily named in the plural... > UsersController, as opposed to UserController. > > What does a "rake routes" report to you? > Thanks for the prompt reply. I agree i am messing up somewhere with the restful routing. By the time i am playing with the custom routing you recommended, here are the things you asked.
### "rake routes" report as following: user_index GET /user {:action=>"index", :controller=>"user"} formatted_user_index GET /user.:format {:action=>"index", :controller=>"user"} POST /user {:action=>"create", :controller=>"user"} POST /user.:format {:action=>"create", :controller=>"user"} new_user GET /user/new {:action=>"new", :controller=>"user"} formatted_new_user GET /user/new.:format {:action=>"new", :controller=>"user"} edit_user GET /user/:id/edit {:action=>"edit", :controller=>"user"} formatted_edit_user GET /user/:id/edit.:format {:action=>"edit", :controller=>"user"} user GET /user/:id {:action=>"show", :controller=>"user"} formatted_user GET /user/:id.:format {:action=>"show", :controller=>"user"} PUT /user/:id {:action=>"update", :controller=>"user"} PUT /user/:id.:format {:action=>"update", :controller=>"user"} DELETE /user/:id {:action=>"destroy", :controller=>"user"} DELETE /user/:id.:format {:action=>"destroy", :controller=>"user"} /:controller/:action/:id /:controller/:action/:id.:format ### and routes.rb (withoug comments) is as following: ActionController::Routing::Routes.draw do |map| map.resources :user map.connect ':controller/:action/:id' map.connect ':controller/:action/:id.:format' end -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---