This project is archived and is in readonly mode.
Routing optimisations break plugins that use ActionController::Base.default_url_options
-
Tom Adams
Apologies for the nasty formatting, I see it's not too much like TextTile...
-
Cheah Chu Yeow
Is this still broken in the latest revision of Rails (on Github)? If not, you may be interested in looking at http://rails.lighthouseapp.com/p....
-
Tom Adams
It appears that it is still broken, however I've been unable to reconfirm this, it could be some screwy settings on my behalf. I've checked the code in the patch attached to the referenced ticket though, and it looks fine, however I've not had the chance to debug it (I'm having gem issues with activerecord versions).
-
DHH
- State changed from new to resolved
default_url_options are not used for named routes. If you need that to happen, you can do:
config.action_controller.optimise_named_routes = false
-
Tom Adams
I don't think this is the point, the issue was that it was working this way before, but no longer. Plugins (and hence project code) that depended on this behaviour no longer works after upgrading. At the very least this deserves a prominent notice in the doco.
-
DHH
I think that's fair. Please do add a docrails patch with this information where you'd expect to find it yourself if you were looking. Thanks!