app/controllers/almanac/comments_controller.rb in almanac-0.6.0 vs app/controllers/almanac/comments_controller.rb in almanac-0.6.1
- old
+ new
@@ -14,14 +14,14 @@
respond_with(@comment) do |format|
@comment.spam = (@blog.rakismet_key?) ? @comment.spam? : false
if @comment.save
format.html {
- redirect_to post_path(@comment.post),
+ redirect_to post_path(@post.slug),
:notice => (@comment.spam) ? "Your comment looks like spam, it won't be published." : "Comment was successfully posted."
}
else
- format.html { redirect_to post_path(@post), :alert => 'Something went wrong, try again.' }
+ format.html { redirect_to post_path(@post.slug), :alert => 'Something went wrong, try again.' }
end
end
end
def destroy