This project is archived and is in readonly mode.
Changeset [eedbf87d15b99a7cae38b0d8894fc39f1e70a81e] by Piotr Sarnacki
September 3rd, 2010 @ 09:59 PM
New way of generating urls for Application from Engine.
It's based specifying application's script_name with:
Rails.application.default_url_options = {:script_name =>
"/foo"}
default_url_options method is delegated to routes. If router
used to generate url differs from the router passed via env
it always overwrites :script_name with this value.
http://github.com/rails/rails/commit/eedbf87d15b99a7cae38b0d8894fc3...
Committed by Piotr Sarnacki
- M actionpack/lib/action_controller/metal/url_for.rb
- M actionpack/lib/action_dispatch/routing/route_set.rb
- M actionpack/lib/action_dispatch/routing/url_for.rb
- M actionpack/test/controller/routing_test.rb
- M actionpack/test/dispatch/prefix_generation_test.rb
- M railties/lib/rails/application.rb
- M railties/test/railties/mounted_engine_routes_test.rb
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>