This project is archived and is in readonly mode.

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

Committed by Sam Ruby

  • M actionpack/lib/action_dispatch/routing/mapper.rb
  • M actionpack/test/dispatch/routing_test.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>