aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/string_coercion_test.rb
diff options
context:
space:
mode:
authorSam Ruby <rubys@intertwingly.net>2009-12-23 23:33:14 -0500
committerJeremy Kemper <jeremy@bitsweat.net>2009-12-23 20:55:21 -0800
commitaa3565f3a6327c947ded314525ba1d0674d5a71e (patch)
tree2afa31bf9d36ff008c497770815edd457d8bbd10 /actionpack/test/dispatch/string_coercion_test.rb
parent84f1137ef87ff3c8e7cff5e8363d1f116b23fcae (diff)
downloadrails-aa3565f3a6327c947ded314525ba1d0674d5a71e.tar.gz
rails-aa3565f3a6327c947ded314525ba1d0674d5a71e.tar.bz2
rails-aa3565f3a6327c947ded314525ba1d0674d5a71e.zip
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>
Diffstat (limited to 'actionpack/test/dispatch/string_coercion_test.rb')
0 files changed, 0 insertions, 0 deletions