Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

URL options for polymorphic_url

#880

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.

Reported by Tom Stuart · August 21st, 2008 @ 06:43 PM

State: resolved
Milestone: 2.x
Assigned to: Pratik Pratik
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [98fb161dbb13feb18165468aedf1581d5c2305f4]) Allow polymorphic_url helper to take url options. [#880 URL options for polymorphic_url 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...

    August 21st, 2008 @ 08:27 PM