On 30 Aug 2010, at 20:38, Martin S. wrote:
> In my eyes this doesn't make sense. Is there a way to get the
> id_constraint of the parent_resource?
Martin, yes it appears there's a bug here. Can you please create a ticket.
As a workaround if you spec the routes in full it works as expected:
resources :lists, :constraints => { :id => /([A-Za-z0-9]{25})|default/ } do
nested do
resources :todos, :constraints => { :id => /\d+/ }
end
end
Andrew
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.