Fix missing error templates for non-HTML requests (#12593)

th-downstream
Eugen Rochko 5 years ago committed by GitHub
parent 2b592001b2
commit af95252d4c

@ -136,6 +136,6 @@ class ApplicationController < ActionController::Base
end
def respond_with_error(code)
render "errors/#{code}", layout: 'error', status: code
render "errors/#{code}", layout: 'error', status: code, formats: [:html]
end
end

Loading…
Cancel
Save