aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2017-07-11 23:03:55 +0200
committerGitHub <noreply@github.com>2017-07-11 23:03:55 +0200
commitf3e8d599a3ce4bdc6cf38ccd2e78c14cb84e28c5 (patch)
tree20b9b2debb29d19c230426b0f70a581862fe4f8c
parentfb129373a3f99c70b9d2548312390de2ce6abf91 (diff)
parent57add37382e7f9859f82eda9ddf90ca7704d0c2e (diff)
downloadrails-f3e8d599a3ce4bdc6cf38ccd2e78c14cb84e28c5.tar.gz
rails-f3e8d599a3ce4bdc6cf38ccd2e78c14cb84e28c5.tar.bz2
rails-f3e8d599a3ce4bdc6cf38ccd2e78c14cb84e28c5.zip
Merge pull request #29756 from yuki24/fix-english
Fix english for the rescue_from warning [ci skip]
-rw-r--r--guides/source/action_controller_overview.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md
index 22537f960c..7de6542f4a 100644
--- a/guides/source/action_controller_overview.md
+++ b/guides/source/action_controller_overview.md
@@ -1186,7 +1186,7 @@ class ClientsController < ApplicationController
end
```
-WARNING: You shouldn't do `rescue_from Exception` or `rescue_from StandardError` unless you have a particular reason as it will cause serious side-effects (e.g. you won't be able to see exception details and tracebacks during development).
+WARNING: Using `rescue_from` with `Exception` or `StandardError` would cause serious side-effects as it prevents Rails from handling exceptions properly. As such, it is not recommended to do so unless there is a strong reason.
NOTE: When running in the production environment, all
`ActiveRecord::RecordNotFound` errors render the 404 error page. Unless you need