aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/routing.textile
diff options
context:
space:
mode:
authorPerry Smith <pedz@easesoftware.com>2012-06-24 10:01:46 -0500
committerPerry Smith <pedz@easesoftware.com>2012-06-24 10:01:46 -0500
commitd5badc4513309a9efeb2d6c92ddd6dbab5159c58 (patch)
treed46e8e45dab08f60184db141b2ad272059341fda /guides/source/routing.textile
parent87615f28e0b80cdf2166fd32dde1a7e544e05c01 (diff)
downloadrails-d5badc4513309a9efeb2d6c92ddd6dbab5159c58.tar.gz
rails-d5badc4513309a9efeb2d6c92ddd6dbab5159c58.tar.bz2
rails-d5badc4513309a9efeb2d6c92ddd6dbab5159c58.zip
Fixed example in 1.2 so help will be defined as the text implies
Diffstat (limited to 'guides/source/routing.textile')
-rw-r--r--guides/source/routing.textile8
1 files changed, 7 insertions, 1 deletions
diff --git a/guides/source/routing.textile b/guides/source/routing.textile
index dae25853cd..70b602a243 100644
--- a/guides/source/routing.textile
+++ b/guides/source/routing.textile
@@ -32,7 +32,13 @@ the request is dispatched to the +patients+ controller's +show+ action with <tt>
h4. Generating Paths and URLs from Code
-You can also generate paths and URLs. If your application contains this code:
+You can also generate paths and URLs. If the route above is modified to be
+
+<ruby>
+get "/patients/:id" => "patients#show", :as => "patient"
+</ruby>
+
+If your application contains this code:
<ruby>
@patient = Patient.find(17)