$("#comment_<%= @comment.id.to_s %>_body_div").html("<%= escape_javascript( render :partial => 'body', :locals => {:comment => @comment}) %>"); $("#comment_<%= @comment.id.to_s %>_timestamp_span").html("<%= escape_javascript( comment_timestamp(@comment)) %>"); $("#comment_<%= @comment.id.to_s %>_actions_span").html("<%= escape_javascript( render :partial => 'actions', :locals => {:comment => comment}) %>"); $("#comment_<%= @comment.id %>_votes_span").html("<%= escape_javascript( render :partial => 'votes', :locals => {:comment => @comment}) %>"); <%= javascript_callback %>