This project is archived and is in readonly mode.

#3110 ✓invalid
speedRIA

routes and action new

Reported by speedRIA | August 28th, 2009 @ 08:40 AM

map.resources :owners do |user|
    user.resources :dogs
end
map.resources :dogs, :only => [:index, :show]

When I do a request like this ........./owners/1/dogs/new
it calls the new action, as expected!
When I do a request like this ........./dogs/new
it calls the show action ???

It seems Rails is not recognizing that it is an new action and takes 'new' as a parameter.
Is that a wanted reaction or a bug?

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

Pages