diff options
-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 ``` |