diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2009-12-20 19:40:18 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2009-12-20 19:40:18 -0800 |
commit | 3506cb730b89dee8a5067329b5aac707708426db (patch) | |
tree | d86051ac865da242f34a999ef4fb274b26b5d29e | |
parent | eeda059818ae95620a7c7b86ad0ff2fa621cbe88 (diff) | |
download | rails-3506cb730b89dee8a5067329b5aac707708426db.tar.gz rails-3506cb730b89dee8a5067329b5aac707708426db.tar.bz2 rails-3506cb730b89dee8a5067329b5aac707708426db.zip |
Mark the wild controller route as legacy an comment it out
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/routes.rb | 8 |
1 files changed, 3 insertions, 5 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 e0f9ca8a12..635ee8d87a 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/routes.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/routes.rb @@ -52,9 +52,7 @@ ActionController::Routing::Routes.draw do |map| # See how all your routes lay out with "rake routes" - # Install the default route as the lowest priority. - # Note: The default route make all actions in every controller accessible - # via GET requests. You should consider removing or commenting it out if - # you're using named routes and resources. - match ':controller(/:action(/:id(.:format)))' + # This is a legacy wild controller route that's not recommended for RESTful applications. + # Note: This route will make all actions in every controller accessible via GET requests. + # match ':controller(/:action(/:id(.:format)))' end |