This project is archived and is in readonly mode.
![Mutwin Kraus Mutwin Kraus](https://entp-lh-avatar-production.s3.amazonaws.com/avatars/20290/large.png?AWSAccessKeyId=AKIAJ4QBZRZBVMOUBNZA&Expires=2030722546&Signature=3ztrStBS%2FD%2FhjD30Sfd0uZiAVNw%3D)
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
-
Rizwan Reza January 21st, 2010 @ 04:22 PM
- State changed from new to invalid
The route defined last always takes precedence.
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>