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:
parent
38af368360
commit
b9c0a16655
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue