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 [aa3565f3a6327c947ded314525ba1d0674d5a71e] by Sam Ruby

Revision aa3565f3a6327c947ded314525ba1d0674d5a71e, committed by Sam Ruby · December 24th, 2009 @ 04:55 AM

Allow named_routes to be used with root, and with new DSL short-form.

The real use case it to make all of the following act the same:

root 'store#index', :as => 'store' match '/' => 'store#index', :as => 'store' match '/', :to => 'store#index', :as => 'store'

The test case provided deviates from this in order to demonstrate all three
forms in a single set of test routes.

Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/aa3565f3a6327c947ded314525ba1d...

2 changed files

  • M actionpack/lib/action_dispatch/routing/mapper.rb
  • M actionpack/test/dispatch/routing_test.rb