Couldn't get this to work in controller...
add_breadcrumb @management.name, [:admin, @management]
It resolves the url to:
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 ;)
In previous Rails versions the url_for helper was able to handle polymorphic paths. It seems things changed recently.
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.
Breadcrumbs now accepts a polymorphic path (closes GH-15)
Fixed, thank you!