Well looks like you dont need the != in front of each line. The following works for me just fine. Im using Rails 3 and latest version of HAML
$('#comments_table_header').after('#{escape_javascript(render :partial => 'row', :locals => { :comment => @comment })}');