$("#<%= Comment.formid_for(@comment.parent) %>").html("") $("#<%= Comment.wrapid_for(@comment.commentable) %>").html("<%= escape_javascript render partial:"comments/comments", object: @comments %>")