Re: Hatred towards Nested Polymorphic Paths

DHH
2007-07-07T15:08:42Z

> "/companies/1/people/1" == BAD
> "/people/1" == GOOD
>
> You shouldn''t need to be scoping person #1 if its the unique id.
>
> Its not in the spirit of Rails to be providing tools to help you
> practice bad habits.

I think this is going too far. I too prefer to limit the scope to one
level, but there are legitimate reasons to have deeper nesting. /
albums/45/tracks/1 (where the track number is scoped on the album). Or
closer to home, /forums/5/threads/1 and /forums/15/threads/1.

I think it''s perfectly fine to encourage people to not nest when they
don''t really care one way or another. But to outright
"forbid" it is
pushing it.

What are your technical grudges against this? And what would be better
if we didn''t support it?