app/controllers/blog_controller.rb in spud_blog-0.8.13 vs app/controllers/blog_controller.rb in spud_blog-0.8.14
- old
+ new
@@ -75,10 +75,13 @@
end
respond_with @post
end
def create_comment
- return unless params[:comment_validation].empty? # trap spam bots
+ unless params[:comment_validation].blank? # trap spam bots
+ render :nothing => true
+ return
+ end
@post = SpudPost.find(params[:id])
if @post.blank?
flash[:error] = "Post not found!"
redirect_to blog_path and return false
end
\ No newline at end of file