Report abuse
1
2
3
4
5
6
7
8
9
10
|
respond_to do |format|
if @post.show_blog_comments << @show_blog_comment
@post.reload
format.html { redirect_to show_blog_post_url(@show, @post) }
format.js { render :action => '/new_comment.rjs' }
else
format.html { redirect_to show_blog_post_url(@show, @post) }
format.js { render :action => '/new_comment.rjs' }
end
end
|