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])
For me it was a simple before_filter that was restricting a action that renders a js file, once I added the :except => [:action] to the before_filter block it was fine.