diff options
author | Jason Noble <github+jasonn@jasonnoble.org> | 2012-11-24 22:56:56 -0700 |
---|---|---|
committer | Jason Noble <github+jasonn@jasonnoble.org> | 2012-11-24 22:56:56 -0700 |
commit | 45f0fead7a5ea9ab0eaab41bf08d47ec1e309bcc (patch) | |
tree | 260d0fe1bb4fe2c95ee2ff337d413924a634e0ac | |
parent | c94cfdad6388dcdfaf4c10b9e8cee46baf2a7901 (diff) | |
download | rails-45f0fead7a5ea9ab0eaab41bf08d47ec1e309bcc.tar.gz rails-45f0fead7a5ea9ab0eaab41bf08d47ec1e309bcc.tar.bz2 rails-45f0fead7a5ea9ab0eaab41bf08d47ec1e309bcc.zip |
We should use post_path, not post_url
-rw-r--r-- | guides/source/getting_started.md | 2 |
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 ``` |