This project is archived and is in readonly mode.

#3493 ✓invalid
Mutwin Kraus

3.0: New Router sometimes routes to controller#show instead of controller#new

Reported by Mutwin Kraus | November 18th, 2009 @ 08:40 PM

When more than one resource is defined the new router router routes to the show action (with :id => "new") of a resource instead of the new action.

I was able to fix this by changing the order of the created routes in the resources action.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages