aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorDouglas Teoh <douglas@dteoh.com>2013-05-04 17:51:37 +1000
committerDouglas Teoh <douglas@dteoh.com>2013-05-04 17:51:37 +1000
commit757e985c6f488707264aa37fe0bcfdaa7a8a06ca (patch)
treef901cb6b2a0200e3aca30a5dacdf2a7b13863466 /guides/source
parent714bb17aea08dc043b1b3e7e7c87b7afa78c5a26 (diff)
downloadrails-757e985c6f488707264aa37fe0bcfdaa7a8a06ca.tar.gz
rails-757e985c6f488707264aa37fe0bcfdaa7a8a06ca.tar.bz2
rails-757e985c6f488707264aa37fe0bcfdaa7a8a06ca.zip
Fix another incorrect post_path link generation.
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/getting_started.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md
index da17d59d3c..43bcbc9f42 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -1075,7 +1075,7 @@ together.
<tr>
<td><%= post.title %></td>
<td><%= post.text %></td>
- <td><%= link_to 'Show', post_path %></td>
+ <td><%= link_to 'Show', post_path(post) %></td>
<td><%= link_to 'Edit', edit_post_path(post) %></td>
<td><%= link_to 'Destroy', post_path(post),
method: :delete, data: { confirm: 'Are you sure?' } %></td>