mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
The new routes shortform now also works for :as
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user