class PublicExceptions
Ruby on Rails 6.1.7.10
Since v3.2.22.5When called, this middleware renders an error page. By default if an HTML response is expected it will render static error pages from the /public directory. For example when this middleware receives a 500 response it will render the template found in /public/500.html. If an internationalized locale is set, this middleware will attempt to render the template in /public/500.<locale>.html. If an internationalized template is not found it will fall back on /public/500.html.
When a request with a content type other than HTML is made, this middleware will attempt to convert error information into the appropriate response type.
Inherits from
Attributes
Methods (defined here)
Private methods
(3)
Implementation detail — not part of the public API.
- # render
- # render_format
- # render_html
Methods (inherited)
From Object (17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # unescape
- # with_options
From ActiveRecord::TestFixtures (4)
From ActiveSupport::Concern (3)
- # class_methods
- # included
- # prepended