Weird "406 not acceptable" error
- by Horace Loeb
When I try to hit this action via Javascript, I get a 406 Not Acceptable error:
def show
@annotation = Annotation.find_by_id(params[:id])
respond_to do |format|
format.html {
if @annotation.blank?
redirect_to root_path
else
redirect_to inline_annotation_path(@annotation)
end
…