aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorJason Noble <github+jasonn@jasonnoble.org>2012-11-24 22:56:56 -0700
committerJason Noble <github+jasonn@jasonnoble.org>2012-11-24 22:56:56 -0700
commit45f0fead7a5ea9ab0eaab41bf08d47ec1e309bcc (patch)
tree260d0fe1bb4fe2c95ee2ff337d413924a634e0ac /guides
parentc94cfdad6388dcdfaf4c10b9e8cee46baf2a7901 (diff)
downloadrails-45f0fead7a5ea9ab0eaab41bf08d47ec1e309bcc.tar.gz
rails-45f0fead7a5ea9ab0eaab41bf08d47ec1e309bcc.tar.bz2
rails-45f0fead7a5ea9ab0eaab41bf08d47ec1e309bcc.zip
We should use post_path, not post_url
Diffstat (limited to 'guides')
-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 76389cc33a..18cf6873ee 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -1403,7 +1403,7 @@ class CommentsController < ApplicationController
def create
@post = Post.find(params[:post_id])
@comment = @post.comments.create(params[:comment])
- redirect_to post_url(@post)
+ redirect_to post_path(@post)
end
end
```