$("#comments-box-<%= @annotation.id %>").replaceWith("<%= j render('comments_box', annotation: @annotation) %>").show(); <%= render 'comments_box_form', comment: @comment, annotation: @annotation %>