diff options
author | AvnerCohen <israbirding@gmail.com> | 2012-10-13 17:19:03 +0200 |
---|---|---|
committer | AvnerCohen <israbirding@gmail.com> | 2012-10-13 17:19:03 +0200 |
commit | a6ddc395b3fbc2b2213a0120612eb46288554aaa (patch) | |
tree | 1ffbf1c2eaff481efbe3c6a3425192ebd6ab4d00 /guides/code/getting_started/config | |
parent | 3e0be3ab5e8cc5b277e54110610767124e25f611 (diff) | |
download | rails-a6ddc395b3fbc2b2213a0120612eb46288554aaa.tar.gz rails-a6ddc395b3fbc2b2213a0120612eb46288554aaa.tar.bz2 rails-a6ddc395b3fbc2b2213a0120612eb46288554aaa.zip |
1.9 hash syntax changes
Diffstat (limited to 'guides/code/getting_started/config')
-rw-r--r-- | guides/code/getting_started/config/routes.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb index 04a6bd374e..d94b0d6f33 100644 --- a/guides/code/getting_started/config/routes.rb +++ b/guides/code/getting_started/config/routes.rb @@ -12,8 +12,8 @@ Blog::Application.routes.draw do # Keep in mind you can assign values other than :controller and :action # Sample of named route: - # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase - # This route can be invoked with purchase_url(:id => product.id) + # 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): # resources :products @@ -40,7 +40,7 @@ Blog::Application.routes.draw do # resources :products do # resources :comments # resources :sales do - # get 'recent', :on => :collection + # get 'recent', on: :collection # end # end |