Skip to content

Commit

Permalink
Fixed example in 1.2 so help will be defined as the text implies
Browse files Browse the repository at this point in the history
  • Loading branch information
pedz committed Jun 24, 2012
1 parent 87615f2 commit d5badc4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion guides/source/routing.textile
Expand Up @@ -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)
Expand Down

0 comments on commit d5badc4

Please sign in to comment.