diff options
author | Zachary Scott <e@zzak.io> | 2014-10-16 02:47:11 -0700 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-10-16 02:47:11 -0700 |
commit | 01a4ae9d76d995d448a6edc25b839e60f8d8628a (patch) | |
tree | e6ad8f8336be21b7e779c1dde66d719d20cae4be | |
parent | f0f1025e8b5c691d9fd9fc8dacabbc61272d0d13 (diff) | |
parent | 9510c1e360d39f8d5977e00f071a46af7f366c33 (diff) | |
download | rails-01a4ae9d76d995d448a6edc25b839e60f8d8628a.tar.gz rails-01a4ae9d76d995d448a6edc25b839e60f8d8628a.tar.bz2 rails-01a4ae9d76d995d448a6edc25b839e60f8d8628a.zip |
Merge pull request #17281 from y-yagi/configuring_guide
[ci skip] add AC::InvalidCrossOriginRequest to list of rescue_responses default
-rw-r--r-- | guides/source/configuring.md | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index be0478653b..58c3f217eb 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -368,20 +368,21 @@ 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, + 'ActionController::InvalidAuthenticityToken' => :unprocessable_entity, + 'ActionController::InvalidCrossOriginRequest' => :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 } ``` |