diff options
author | Clemens Kofler <clemens@railway.at> | 2008-07-09 21:41:03 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-07-10 09:29:27 +0200 |
commit | feb08984ea5517db5780a88584929feac1cafb59 (patch) | |
tree | e763d94b44d5144d79a6fd8bd1c1de34bf567e73 /railties | |
parent | d37e6413366c9a3fafa02c4298a2946dc8327a42 (diff) | |
download | rails-feb08984ea5517db5780a88584929feac1cafb59.tar.gz rails-feb08984ea5517db5780a88584929feac1cafb59.tar.bz2 rails-feb08984ea5517db5780a88584929feac1cafb59.zip |
Added notes to Routing documentation and routes.rb regarding defaults routes opening the whole application for GET requests
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'railties')
-rw-r--r-- | railties/configs/routes.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/configs/routes.rb b/railties/configs/routes.rb index b579d6c7d1..4f3d9d22dd 100644 --- a/railties/configs/routes.rb +++ b/railties/configs/routes.rb @@ -36,6 +36,8 @@ ActionController::Routing::Routes.draw do |map| # See how all your routes lay out with "rake routes" # Install the default routes as the lowest priority. + # Note: These default routes make all actions in every controller accessible via GET requests. You should + # consider removing the them or commenting them out if you're using named routes and resources. map.connect ':controller/:action/:id' map.connect ':controller/:action/:id.:format' end |