Re: Hatred towards Nested Polymorphic Paths

Geoff B
2007-07-07T15:59:57Z

So, are you saying that, instead of doing this:

link_to @track.name, [@album, @track]

...we should be required to do this:

link_to @track.name, album_track_path(@album, @track)

?

On Jul 7, 10:50 am, Josh Peek <joshp...@gmail.com>
wrote:
> 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.