diff options
author | Perry Smith <pedz@easesoftware.com> | 2012-06-24 10:01:46 -0500 |
---|---|---|
committer | Perry Smith <pedz@easesoftware.com> | 2012-06-24 10:01:46 -0500 |
commit | d5badc4513309a9efeb2d6c92ddd6dbab5159c58 (patch) | |
tree | d46e8e45dab08f60184db141b2ad272059341fda /guides/source | |
parent | 87615f28e0b80cdf2166fd32dde1a7e544e05c01 (diff) | |
download | rails-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')
-rw-r--r-- | guides/source/routing.textile | 8 |
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) |