From d5badc4513309a9efeb2d6c92ddd6dbab5159c58 Mon Sep 17 00:00:00 2001 From: Perry Smith Date: Sun, 24 Jun 2012 10:01:46 -0500 Subject: [PATCH] Fixed example in 1.2 so help will be defined as the text implies --- guides/source/routing.textile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/guides/source/routing.textile b/guides/source/routing.textile index dae25853cdbf5..70b602a24398d 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 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 + + +get "/patients/:id" => "patients#show", :as => "patient" + + +If your application contains this code: @patient = Patient.find(17)