You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/source/configuring.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -364,6 +364,29 @@ encrypted cookies salt value. Defaults to `'signed encrypted cookie'`.
364
364
method should be performed on the parameters. See [SecurityGuide](security.html#unsafe-query-generation)
365
365
for more information. It defaults to true.
366
366
367
+
*`config.action_dispatch.rescue_responses` configures what exceptions are assigned to an HTTP status. It accepts a hash and you can specify pairs of exception/status. By default, this is defined as:
Any execptions that are not configured will be assigned to 500Internal server error.
389
+
367
390
*`ActionDispatch::Callbacks.before` takes a block of code to run before the request.
368
391
369
392
*`ActionDispatch::Callbacks.to_prepare` takes a block to run after `ActionDispatch::Callbacks.before`, but before the request. Runsfor every request in`development` mode, but only once for`production`or environments with `cache_classes` set to `true`.
0 commit comments