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

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

Extended url_for to handle specifying which router should be used.

A few examples:
url_for Blog::Engine, :posts_path
url_for Blog::Engine, @post
url_for Blog::Engine, :action => "main", :controller => "index"
http://github.com/rails/rails/commit/b53efd21059b9d829a6617fb5b2dd8...

7 changed files

  • A actionpack/test/dispatch/url_for_test.rb
  • M actionpack/lib/action_dispatch/routing/polymorphic_routes.rb
  • M actionpack/lib/action_dispatch/routing/route_set.rb
  • M actionpack/lib/action_dispatch/routing/url_for.rb
  • M actionpack/test/dispatch/url_generation_test.rb
  • M actionpack/test/template/form_helper_test.rb
  • M actionpack/test/template/test_test.rb