diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2014-10-03 05:40:32 +0100 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2014-10-03 05:40:32 +0100 |
commit | c9e510c1a874fd79554d5164e7530b9a617d5146 (patch) | |
tree | 62accba0d85fc177305d3c977d53d00e600acc6a /guides/source/configuring.md | |
parent | d93854ffc9cdea1092a68e0f520d2ce9128edfe8 (diff) | |
parent | d76380cf1ccec7ffeff19827ae9b6d9b71327418 (diff) | |
download | rails-c9e510c1a874fd79554d5164e7530b9a617d5146.tar.gz rails-c9e510c1a874fd79554d5164e7530b9a617d5146.tar.bz2 rails-c9e510c1a874fd79554d5164e7530b9a617d5146.zip |
Merge pull request #17153 from yuki24/fix-doc-format-for-rescue-responses
[Railsguides] Fix style for rescue responses doc [ci skip]
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r-- | guides/source/configuring.md | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 7b9710bcd8..6d1464fdd7 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -368,24 +368,25 @@ encrypted cookies salt value. Defaults to `'signed encrypted cookie'`. ```ruby config.action_dispatch.rescue_responses = { - 'ActionController::RoutingError' => :not_found, - 'AbstractController::ActionNotFound' => :not_found, - 'ActionController::MethodNotAllowed' => :method_not_allowed, - 'ActionController::UnknownHttpMethod' => :method_not_allowed, - 'ActionController::NotImplemented' => :not_implemented, - 'ActionController::UnknownFormat' => :not_acceptable, - 'ActionController::InvalidAuthenticityToken' => :unprocessable_entity, - 'ActionDispatch::ParamsParser::ParseError' => :bad_request, - 'ActionController::BadRequest' => :bad_request, - 'ActionController::ParameterMissing' => :bad_request, - 'ActiveRecord::RecordNotFound' => :not_found, - 'ActiveRecord::StaleObjectError' => :conflict, - 'ActiveRecord::RecordInvalid' => :unprocessable_entity, - 'ActiveRecord::RecordNotSaved' => :unprocessable_entity + 'ActionController::RoutingError' => :not_found, + 'AbstractController::ActionNotFound' => :not_found, + 'ActionController::MethodNotAllowed' => :method_not_allowed, + 'ActionController::UnknownHttpMethod' => :method_not_allowed, + 'ActionController::NotImplemented' => :not_implemented, + 'ActionController::UnknownFormat' => :not_acceptable, + 'ActionDispatch::ParamsParser::ParseError' => :bad_request, + 'ActionController::BadRequest' => :bad_request, + 'ActionController::ParameterMissing' => :bad_request, + 'ActiveRecord::RecordNotFound' => :not_found, + 'ActiveRecord::StaleObjectError' => :conflict, + 'ActiveRecord::RecordInvalid' => :unprocessable_entity, + 'ActiveRecord::RecordNotSaved' => :unprocessable_entity, + 'ActionController::InvalidAuthenticityToken' + => :unprocessable_entity } ``` - Any execptions that are not configured will be assigned to 500 Internal server error. + Any execption that is not configured will be assigned to 500 Internal server error. * `ActionDispatch::Callbacks.before` takes a block of code to run before the request. |