method
render_html
v6.0.0 -
Show latest stable
- Class:
ActionDispatch::PublicExceptions
render_html(status)private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/public_exceptions.rb, line 50
def render_html(status)
path = "#{public_path}/#{status}.#{I18n.locale}.html"
path = "#{public_path}/#{status}.html" unless (found = File.exist?(path))
if found || File.exist?(path)
render_format(status, "text/html", File.read(path))
else
[404, { "X-Cascade" => "pass" }, []]
end
end