This project is archived and is in readonly mode.

#2099 ✓resolved
Mislav

polymorphic_path shouldn't modify options hash

Reported by Mislav | February 28th, 2009 @ 03:17 PM | in 2.x

Currently it's not possible to call first polymorphic_path and then polymorphic_url with the same options hash:


options = { :format => 'xml' }
polymorphic_path(record, options)
polymorphic_url(record, options) # => wrong result (path instead of URL)

This is because polymorphic_path changes the options hash to add ":routing_type => :path".

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages