aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides/routing
diff options
context:
space:
mode:
authorMike Gunderloy <MikeG1@larkfarm.com>2008-09-23 17:11:50 -0500
committerMike Gunderloy <MikeG1@larkfarm.com>2008-09-23 17:12:12 -0500
commit092628ad3a1adfb78e01d3d5791f867559648d40 (patch)
tree0f4f32bc71d849a0c2b4a027737d8baf65a8cf26 /railties/doc/guides/routing
parent1915d7ccce99a35c1a5e95e639760168a4bcc99f (diff)
downloadrails-092628ad3a1adfb78e01d3d5791f867559648d40.tar.gz
rails-092628ad3a1adfb78e01d3d5791f867559648d40.tar.bz2
rails-092628ad3a1adfb78e01d3d5791f867559648d40.zip
Slight change to examples.
Diffstat (limited to 'railties/doc/guides/routing')
-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 065adff535..fcd435ce66 100644
--- a/railties/doc/guides/routing/routing_outside_in.txt
+++ b/railties/doc/guides/routing/routing_outside_in.txt
@@ -17,7 +17,7 @@ Rails routing is a two-way piece of machinery - rather as if you could turn tree
When your Rails application receives an incoming HTTP request, say
-------------------------------------------------------
-GET /patient/17
+GET /patients/17
-------------------------------------------------------
the routing engine within Rails is the piece of code that dispatches the request to the appropriate spot in your application. In this case, the application would most likely end up running the +show+ action within the +patients+ controller, displaying the details of the patient whose ID is 17.
@@ -32,7 +32,7 @@ Routing also works in reverse. If your application contains this code:
<%= link_to "Patient Record", patient_path(@patient) %>
-------------------------------------------------------
-Then the routing engine is the piece that translates that to a link to a URL such as +http://example.com/patient/17+. By using routing in this way, you can reduce the brittleness of your application as compared to one with hard-coded URLs, and make your code easier to read and understand.
+Then the routing engine is the piece that translates that to a link to a URL such as +http://example.com/patients/17+. By using routing in this way, you can reduce the brittleness of your application as compared to one with hard-coded URLs, and make your code easier to read and understand.
NOTE: Patient needs to be declared as a resource for this style of translation via a named route to be available.