#177 √ resolved
Shay Arnett

[Patch] Change for nested resources

Reported by Shay Arnett | February 29th, 2008 @ 06:30 PM | in 0.9

This patch fixes a problem where resources couldn't be nested under more than 1 parent. For example you couldn't previously do

r.resources :foos do |f|
  f.resources :bars
end
r.resources :chips do |c|
  c.resources :bars
end

The last nesting would overwrite the named routes that the first one created. Rendering it impossible to use the named routes with url().

The named routes produced after the patch will be like:

:foo_bars

:chip_bars

:new_foo_bar

:new_chip_bar

:edit_foo_bar

:edit_chip_bar

etc...

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

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