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])
If you are using jRails this was causing a lot of problems for me, here is my application.js file:
application.js
$(document).ready(function () { $.ajaxSetup({ beforeSend: function (xhr) { xhr.setRequestHeader("Accept", "text/javascript, text/html, application/xml, text/xml, */*"); } }); });