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

pull/12596/head
Eugen Rochko 5 years ago committed by GitHub
parent ab91e7480b
commit 7ee6f51b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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