diff options
author | Yuki Nishijima <mail@yukinishijima.net> | 2014-10-02 18:55:42 -0700 |
---|---|---|
committer | Yuki Nishijima <mail@yukinishijima.net> | 2014-10-02 19:01:33 -0700 |
commit | d76380cf1ccec7ffeff19827ae9b6d9b71327418 (patch) | |
tree | 9ed1003f197ce49b7e55f75ae6510018469da7ba /guides/source/configuring.md | |
parent | c935d6f9b5f3f59d170dc8b6464cc368841e35fe (diff) | |
download | rails-d76380cf1ccec7ffeff19827ae9b6d9b71327418.tar.gz rails-d76380cf1ccec7ffeff19827ae9b6d9b71327418.tar.bz2 rails-d76380cf1ccec7ffeff19827ae9b6d9b71327418.zip |
Fix style for rescue responses doc [ci skip]
* Change 'Any ***s that are...' to 'Any *** that is...'
* Fix style for default rescue_responses setting
This is a follow-up commit to:
* https://github.com/rails/rails/pull/17076
* https://github.com/yuki24/rails/commit/89b8836f2470c689f6b7d52cab3a418bb63aef26
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. |