rails/rails — Issue #3799: resources path_names not working on `create`
Author: abyx
Created: 2011-11-29 15:10:57+00:00
State: open

The documentation for `resources` states that the `path_names` argument can be used to rename any of the seven CRUD methods, but trying to do so doesn't work for me. Doing this:

resources :books, :path_names => { :create => 'my_create' }

Results in the same default route for `create`:

$ rake routes
books GET /books(.:format) {:action=>"index", :controller=>"books"}
POST /books(.:format) {:action=>"create", :controller=>"books"}
new_book GET /books/new(.:format) {:action=>"new", :controller=>"books"}
edit_book GET /books/:id/edit(.:format) {:action=>"edit", :controller=>"books"}
book GET /books/:id(.:format) {:action=>"show", :controller=>"books"}
PUT /books/:id(.:format) {:action=>"update", :controller=>"books"}
DELETE /books/:id(.:format) {:action=>"destroy", :controller=>"books"}

What is mistaken here, the code or the documentation?