diff options
author | schneems <richard.schneeman@gmail.com> | 2014-08-05 11:45:44 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2014-08-05 11:45:44 -0500 |
commit | e460e7cac076664999a1642cb86a179bdb8e83e0 (patch) | |
tree | 4ceb5affce55cc3c3f3420114850d2f5117afae6 /actionpack/lib | |
parent | 3bf2a4c0d2e04545ea34b080ccad8c998783b259 (diff) | |
download | rails-e460e7cac076664999a1642cb86a179bdb8e83e0.tar.gz rails-e460e7cac076664999a1642cb86a179bdb8e83e0.tar.bz2 rails-e460e7cac076664999a1642cb86a179bdb8e83e0.zip |
[ci skip] Document PublicExceptions middleware
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/public_exceptions.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/public_exceptions.rb b/actionpack/lib/action_dispatch/middleware/public_exceptions.rb index 6c8944e067..3664e38af9 100644 --- a/actionpack/lib/action_dispatch/middleware/public_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/public_exceptions.rb @@ -1,4 +1,14 @@ module ActionDispatch + # When 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. class PublicExceptions attr_accessor :public_path |