aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/routing.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-02-28 19:19:47 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-02-28 19:19:47 +0530
commit25aa4c7bdc78f2d8146cd4b7e8024e618066baf0 (patch)
treefaf5e3f6f4bfa7cac88d7d15a4b9fe3740c89296 /railties/guides/source/routing.textile
parentf597122b076568356c070ed9bcd83aec29a963eb (diff)
downloadrails-25aa4c7bdc78f2d8146cd4b7e8024e618066baf0.tar.gz
rails-25aa4c7bdc78f2d8146cd4b7e8024e618066baf0.tar.bz2
rails-25aa4c7bdc78f2d8146cd4b7e8024e618066baf0.zip
minor edits [ci skip]
Diffstat (limited to 'railties/guides/source/routing.textile')
-rw-r--r--railties/guides/source/routing.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile
index 24e7d09a49..42665114be 100644
--- a/railties/guides/source/routing.textile
+++ b/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] %>