Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10925 (closed defect: duplicate)

Opened 1 year ago

Last modified 10 months ago

Routing optimization, named routes missing default url options

Reported by: dguettler Assigned to: core
Priority: normal Milestone: 2.x
Component: ActionPack Version: edge
Severity: normal Keywords: routing, named routes, default url options
Cc:

Description

If you overwrite the default_url_options method from ActionController::Base the default options are not included in the url when you use a named route due to routing_optimization.
The generate_optimisation_block does not take into account if there are options in the default_url_options method specified which should be appended to the url.
It works fine when using a Hash instead of the named route.

I attached an example application which shows the problem.

Attachments

dummy_routing.tgz (10.8 kB) - added by dguettler on 01/25/08 21:04:31.
Sample application

Change History

01/25/08 21:04:31 changed by dguettler

  • attachment dummy_routing.tgz added.

Sample application

08/30/08 01:21:08 changed by bitsweat

  • status changed from new to closed.
  • resolution set to duplicate.