rails/rails — pull request #6160 by carlosantoniodasilva (2012-05-04 18:38:37+00:00)
Title: Force given path to http methods in mapper to skip canonical action checking

This fixes the following scenario:

resources :contacts do
post 'new', action: 'new', on: :collection, as: :new
end

Where the /new path is not generated because it's considered a canonical
action, part of the normal resource actions:

new_contacts POST /contacts(.:format) contacts#new

ActionPack tests are ok (except for 3 failing on master related to latest session changes).
Fixes #2999