Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

routes and action new

#3110
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?

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

State: invalid
Milestone: none
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to invalid

    It's expected. "new" is treated as the id.

    August 28th, 2009 @ 08:46 AM