For one of our ajax request (with a .json response) some of our clients have complained that they are seeing a \"File Download\" prompt asking the user to download the .json res
Not sure if you found a solution, but I had a similar problem where IE tried to download any JS responses. To fix it, I had to ensure that format.html appears above format.js in the response block:
def index
# ...
respond_to do |format|
# html must be above js, otherwise IE will try to download the JS
format.html
format.js
end
end
Hope this helps.