I was getting non-sensical requests for image format on HTML files, triggerring a 500 with MissingTemplate
. I edicted the following at the end of my action:
def show
# [...]
respond_to :html
end
And now instead of getting error reports, we emit a 406 to that mischievious requester.