Permalink
Browse files

The new routes shortform now also works for :as

  • Loading branch information...
1 parent 38af368 commit b9c0a1665531d797e890efdf2fcace8a03961fe0 @dhh dhh committed Dec 25, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/generators/rails/app/templates/config/routes.rb
@@ -7,7 +7,7 @@
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
- # match 'products/:id/purchase', :to => 'catalog#purchase', :as => :purchase
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):

0 comments on commit b9c0a16

Please sign in to comment.