1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

The new routes shortform now also works for :as

This commit is contained in:
David Heinemeier Hansson 2009-12-24 16:08:03 -08:00
parent 38af368360
commit b9c0a16655

View file

@ -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):