From 25aa4c7bdc78f2d8146cd4b7e8024e618066baf0 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Tue, 28 Feb 2012 19:19:47 +0530 Subject: minor edits [ci skip] --- railties/guides/source/routing.textile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/guides/source') 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] %> -If you wanted to link to just a magazine, you could leave out the +Array+: +If you wanted to link to just a magazine: <%= link_to "Magazine details", @magazine %> -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: <%= link_to "Edit Ad", [:edit, @magazine, @ad] %> -- cgit v1.2.3