This project is archived and is in readonly mode.
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
-
Jeremy Kemper June 20th, 2008 @ 09:16 PM
- Milestone set to 2.1.1
- Assigned user set to Jeremy Kemper
- State changed from new to open
-
Tammer Saleh June 20th, 2008 @ 09:17 PM
- Assigned user cleared.
New patch that improves documentation and removes accidentally included comments.
-
Tammer Saleh June 20th, 2008 @ 09:43 PM
- Assigned user set to Jeremy Kemper
-
Repository June 23rd, 2008 @ 03:08 AM
- State changed from open to resolved
(from [0304bb182acaaf73e501a39fbf71d78dd28d0815]) Fixed polymorphic_url to be able to handle singleton resources.
Example usage:
polymorphic_url([:admin, @user, :blog, @post]) # => admin_user_blog_post_url(@user, @post)
[#461 state:resolved]
-
Repository June 23rd, 2008 @ 03:08 AM
(from [bb6e8eea5a8190aaab67da0a7efedb3bb3d9fccb]) Fixed polymorphic_url to be able to handle singleton resources.
Example usage:
polymorphic_url([:admin, @user, :blog, @post]) # => admin_user_blog_post_url(@user, @post)
[#461 state:resolved]
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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>