Please sign in to comment.
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 <email@example.com>
- Loading branch information...
Showing with 16 additions and 8 deletions.