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.

Changeset [eedbf87d15b99a7cae38b0d8894fc39f1e70a81e] by Piotr Sarnacki

Revision eedbf87d15b99a7cae38b0d8894fc39f1e70a81e, committed 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...

7 changed files

  • 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