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