Skip to content

Commit 25aa4c7

Browse files
committed
minor edits [ci skip]
1 parent f597122 commit 25aa4c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

railties/guides/source/routing.textile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,13 @@ In this case, Rails will see that +@magazine+ is a +Magazine+ and +@ad+ is an +A
295295
<%= link_to "Ad details", [@magazine, @ad] %>
296296
</erb>
297297

298-
If you wanted to link to just a magazine, you could leave out the +Array+:
298+
If you wanted to link to just a magazine:
299299

300300
<erb>
301301
<%= link_to "Magazine details", @magazine %>
302302
</erb>
303303

304-
For other actions, you just need to insert the action name as the first element of the +Array+:
304+
For other actions, you just need to insert the action name as the first element of the array:
305305

306306
<erb>
307307
<%= link_to "Edit Ad", [:edit, @magazine, @ad] %>

0 commit comments

Comments
 (0)