This project is archived and is in readonly mode.
Incorrect routing when controller specified for resources - Rails 3.0.0.rc
-
Jamie Wong
Also, if I change the post collection line to
post 'reward_all' => :reward_all, :as => 'reward_all'It corrects the named route.
Why are these things not the defaults?
-
Andrew White
- State changed from new to invalid
- Importance changed from to Low
Using your original routes, here's the output from the current master:
reward_all_users POST /account/reward_all(.:format) {:action=>"reward_all", :controller=>"users"} reward_user POST /account/:id/reward(.:format) {:action=>"reward", :controller=>"users"} GET /account(.:format) {:action=>"index", :controller=>"users"} users POST /account(.:format) {:action=>"create", :controller=>"users"} new_user GET /account/new(.:format) {:action=>"new", :controller=>"users"} edit_user GET /account/:id/edit(.:format) {:action=>"edit", :controller=>"users"} GET /account/:id(.:format) {:action=>"show", :controller=>"users"} PUT /account/:id(.:format) {:action=>"update", :controller=>"users"} user DELETE /account/:id(.:format) {:action=>"destroy", :controller=>"users"}There were some differences between symbols and strings which hopefully have now been rectified. If you'd used symbols you'd get the same output in RC2.