This project is archived and is in readonly mode.

#880 ✓resolved
Tom Stuart

URL options for polymorphic_url

Reported by Tom Stuart | August 21st, 2008 @ 06:43 PM | in 2.x

polymorphic_url doesn't pass URL options through to the named route, even though a) it easily could and b) it would be useful if it did.

Tarmo Tänav has a fix in his fork at http://github.com/tarmo/rails/co.... A rebased patch is attached.

Comments and changes to this ticket

  • Repository

    Repository August 21st, 2008 @ 08:27 PM

    • State changed from “new” to “resolved”

    (from [98fb161dbb13feb18165468aedf1581d5c2305f4]) Allow polymorphic_url helper to take url options. [#880 state:resolved]

    All _polymorphic_url, _polymorphic_path helpers can now accept an options hash which will be passed on to the named route making it possible to generate polymorphic routes with additional url parameters.

    Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...

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>

Attachments

Referenced by

Pages