This project is archived and is in readonly mode.

Changeset [177a4bd5b7f903030a100f9b5092b1fa62c7c748] 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...

Committed by Piotr Sarnacki

  • A railties/test/railties/mounted_engine_routes_test.rb
  • M railties/lib/rails/application.rb
  • M railties/lib/rails/engine.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>