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 [177a4bd5b7f903030a100f9b5092b1fa62c7c748] by Piotr Sarnacki

Revision 177a4bd5b7f903030a100f9b5092b1fa62c7c748, committed by Piotr Sarnacki · September 3rd, 2010 @ 09:59 PM

Fix url generation for mounted Engine

I added integration tests for generating urls in Engine and application
and tweaked Engines to fully cooparate with new router's behavior:
Rails.application now sets ORIGINAL_SCRIPT_NAME Rails.application also sets its routes as env['action_dispatch.parent_routes'] * Engine implements responds_to? class method to respond to all the instance methods, like #routes http://github.com/rails/rails/commit/177a4bd5b7f903030a100f9b5092b1...

3 changed files

  • A railties/test/railties/mounted_engine_routes_test.rb
  • M railties/lib/rails/application.rb
  • M railties/lib/rails/engine.rb