Permalink
Browse files

minor edits [ci skip]

  • Loading branch information...
1 parent f597122 commit 25aa4c7bdc78f2d8146cd4b7e8024e618066baf0 @vijaydev vijaydev committed Feb 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/routing.textile
@@ -295,13 +295,13 @@ In this case, Rails will see that +@magazine+ is a +Magazine+ and +@ad+ is an +A
<%= link_to "Ad details", [@magazine, @ad] %>
</erb>
-If you wanted to link to just a magazine, you could leave out the +Array+:
+If you wanted to link to just a magazine:
<erb>
<%= link_to "Magazine details", @magazine %>
</erb>
-For other actions, you just need to insert the action name as the first element of the +Array+:
+For other actions, you just need to insert the action name as the first element of the array:
<erb>
<%= link_to "Edit Ad", [:edit, @magazine, @ad] %>

0 comments on commit 25aa4c7

Please sign in to comment.