method
failsafe_response_body
rails latest stable - Class:
ActionController::Dispatcher
failsafe_response_body(status)private
No documentation available.
# File actionpack/lib/action_controller/dispatcher.rb, line 72
def failsafe_response_body(status)
error_path = "#{error_file_path}/#{status.to_s[0..3]}.html"
if File.exist?(error_path)
File.read(error_path)
else
"<html><body><h1>#{status}</h1></body></html>"
end
end