diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2009-12-24 16:08:03 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2009-12-24 16:08:03 -0800 |
commit | b9c0a1665531d797e890efdf2fcace8a03961fe0 (patch) | |
tree | 3369044d1380f6f6d4cb15f03558866e2a23a6ad | |
parent | 38af368360ab35600ef69b21d85ae9604e6ebb22 (diff) | |
download | rails-b9c0a1665531d797e890efdf2fcace8a03961fe0.tar.gz rails-b9c0a1665531d797e890efdf2fcace8a03961fe0.tar.bz2 rails-b9c0a1665531d797e890efdf2fcace8a03961fe0.zip |
The new routes shortform now also works for :as
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/routes.rb b/railties/lib/rails/generators/rails/app/templates/config/routes.rb index ac916e9d90..d6c0365c04 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/routes.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/routes.rb @@ -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): |