diff options
author | Xavier Noria <fxn@hashref.com> | 2014-10-03 09:20:48 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2014-10-03 09:20:48 +0200 |
commit | 78a14189d9fa39f3a4852e5c04c0be2e412049c4 (patch) | |
tree | 2f02346cdd932a1c3dd37df30e78c32561b70fab | |
parent | c9e510c1a874fd79554d5164e7530b9a617d5146 (diff) | |
download | rails-78a14189d9fa39f3a4852e5c04c0be2e412049c4.tar.gz rails-78a14189d9fa39f3a4852e5c04c0be2e412049c4.tar.bz2 rails-78a14189d9fa39f3a4852e5c04c0be2e412049c4.zip |
Revert "Fix style for rescue responses doc [ci skip]"
Reason: There is a wrong newline, a typo, and the change
to singular is not good.
This reverts commit d76380cf1ccec7ffeff19827ae9b6d9b71327418.
-rw-r--r-- | guides/source/configuring.md | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 6d1464fdd7..7b9710bcd8 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -368,25 +368,24 @@ 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, - '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 + '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 } ``` - Any execption that is not configured will be assigned to 500 Internal server error. + Any execptions that are not configured will be assigned to 500 Internal server error. * `ActionDispatch::Callbacks.before` takes a block of code to run before the request. |