Re: Hatred towards Nested Polymorphic Paths

Josh Peek
2007-07-07T15:50:36Z

On Jul 7, 10:08 am, DHH <david.heineme...@gmail.com>
wrote:
> 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.

I wasn''t clear about banning what..

I wanted to remove the whole polymorphic nesting with an array:
polymorphic_path([@artist, @album, @track]). If you want to do
something like that, use the old school named route for it:
artist_album_track_path(@artist, @album, @track). I''ve seen a ton of
tickets of people trying to extend polymorphic_path([...]) to do
everything for them when a proper work around with named routes will
do.