controller code:
def delete_comment
if request.delete?
@comment = Comment.find params[:c_id]
@comment.destroy
blog = Blog.find params[:id]
@comments = blog.comments(true)
end
end
render code:
<div id="comments">
<%= render :partial=>"comment ...







评论排行榜