I don't think it should work with these 'advanced' hash arguments. do
they do the right thing when passing through to the optimised named
route generators? Do we want to support them going forwards?
> This one needs a discussion of its own:
> http://dev.rubyonrails.org/ticket/9621
I think that's just an abuse of inheritance and I'm not sure we could
do anything performant and reasonable to support that case, and the
case where AssetsController is meant to handle all the different
subclasses?
--
Cheers
Koz
> What's still broken? (I decided not to fix everything in one go.)I don't think it should work with these 'advanced' hash arguments. do
> Hash argument: polymorphic_url(:id => @article). Test is commented out (like
> before).
> Should this work: polymorphic_url(@article, :format => :pdf) ? Currently it
> doesn't. I've included a failing tests, it's commented out.Open ActionPack
they do the right thing when passing through to the optimised named
route generators? Do we want to support them going forwards?
I think that's just an abuse of inheritance and I'm not sure we could
do anything performant and reasonable to support that case, and the
case where AssetsController is meant to handle all the different
subclasses?
On Jan 22, 2008 9:28 AM, Mislav Marohnić <mislav....@gmail.com> wrote:
>
> Should this work: polymorphic_url(@article, :format => :pdf) ? Currently it
> doesn't. I've included a failing tests, it's commented out.Open ActionPack
I don't think it should work with these 'advanced' hash arguments. do
they do the right thing when passing through to the optimised named
route generators? Do we want to support them going forwards?
I don't believe there's a reason beyond the (considerable)
implementation specific reasons :). Changing that with the current
routing implementation would probably be a little tricky without
making everyone generate urls like:
/albums/1.html
> I think it's because formatted_ seems to just add noise to the method name.
> The format isn't (to me) the most important thing, it's more of an
> afterthought. Keeping it's specification exclusively in the params mirrors
> that imho.
While it's a little odd, I don't see an easy migration path that's
suitable for a point release.
--
Cheers
Koz
I'm happy with the documentation but not sure I buy the need for
#8720? The intention of those helpers is that they automatically
figure out the right url to go to... #8782 seems fine and the
documentation seems awesome.
--
Cheers
Koz
I'm happy with the documentation but not sure I buy the need for
#8720?