This project is archived and is in readonly mode.

#461 ✓resolved
Tammer Saleh

Fixed polymorphic_url to be able to handle singleton resources.

Reported by Tammer Saleh | June 20th, 2008 @ 08:40 PM | in 2.1.1

The polymorphic_url helper does not handle singleton resources correctly. This patch allows you to specify singular resources by listing them as symbols (much like namespaces).

Example usage:

polymorphic_url([:admin, @user, :blog, @post]) # =>  admin_user_blog_post_url(@user, @post)

The attached patch was generated from the github fork.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>