Polymorphic paths #15

morgz opened this Issue Nov 15, 2011 · 4 comments


None yet
3 participants

morgz commented Nov 15, 2011

Couldn't get this to work in controller...

add_breadcrumb @management.name, [:admin, @management]

It resolves the url to:


morgz commented Nov 16, 2011

You can do this polymorphic_path([:admin, @management]) - seems a shame it can't just take the raw polymorphic but hey I'm not complaining ;)


weppos commented Nov 17, 2011

In previous Rails versions the url_for helper was able to handle polymorphic paths. It seems things changed recently.

octavpo commented Jun 10, 2012

It's because compute_path doesn't call url_for on arrays. So if you could just add Array to Hash in the compute_path's case, that would fix it.

weppos was assigned Dec 25, 2012

weppos closed this in 0a53485 Dec 25, 2012


weppos commented Dec 25, 2012

Fixed, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment