aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides/routing/routing_outside_in.txt
diff options
context:
space:
mode:
authorMike Gunderloy <MikeG1@larkfarm.com>2008-09-13 06:58:37 -0500
committerMike Gunderloy <MikeG1@larkfarm.com>2008-09-13 06:58:37 -0500
commit51f3085ac5e35c547df4b957d3cad1ceff83e6bc (patch)
tree65123fa13c9fd1e6fe2bc7703f2e2ab61709bd66 /railties/doc/guides/routing/routing_outside_in.txt
parentae3dcd3de6da95a7c4ac2e9f99e5be812c4b9e45 (diff)
downloadrails-51f3085ac5e35c547df4b957d3cad1ceff83e6bc.tar.gz
rails-51f3085ac5e35c547df4b957d3cad1ceff83e6bc.tar.bz2
rails-51f3085ac5e35c547df4b957d3cad1ceff83e6bc.zip
Added some additional text about default routes.
Diffstat (limited to 'railties/doc/guides/routing/routing_outside_in.txt')
-rw-r--r--railties/doc/guides/routing/routing_outside_in.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/doc/guides/routing/routing_outside_in.txt b/railties/doc/guides/routing/routing_outside_in.txt
index 7b5d25a0dd..88de27ec10 100644
--- a/railties/doc/guides/routing/routing_outside_in.txt
+++ b/railties/doc/guides/routing/routing_outside_in.txt
@@ -102,7 +102,7 @@ map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
-------------------------------------------------------
-These default routes are automatically generated when you create a new Rails application. If you're using RESTful routing, you will probably want to remove them.
+These default routes are automatically generated when you create a new Rails application. If you're using RESTful routing for everything in your application, you will probably want to remove them. But be sure you're not using the default routes before you remove them!
== RESTful Routing: the Rails Default
@@ -725,7 +725,7 @@ map.connect ':controller/:action/:id.:format'
These routes provide reasonable defaults for many URLs, if you're not using RESTful routing.
-NOTE: The default routes will make every action of every controller in your application accessible to GET requests. If you've designed your application to make consistent use of RESTful and named routes, you should comment out the default routes.
+NOTE: The default routes will make every action of every controller in your application accessible to GET requests. If you've designed your application to make consistent use of RESTful and named routes, you should comment out the default routes to prevent access to your controllers through the wrong verbs. If you've had the default routes enabled during development, though, you need to be sure that you haven't unwittingly depended on them somewhere in your application - otherwise you may find mysterious failures when you disable them.
== The Empty Route