When I try to hit this action via Javascript, I get a 406 Not Acceptable error:
406 Not Acceptable
def show @annotation = Annotation.find_by_id(params[:id])
Can you try without setting the Accept Header? It should actually work even without the Accept header.