aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-09-06 20:33:23 -0700
committerZachary Scott <e@zzak.io>2014-09-06 20:33:23 -0700
commit4c3b3a2518f0f482f13a373e039c41be2487b752 (patch)
tree3082429f1b7aec3e0003f50fe20ac30783f71efc
parent749e2895544a68c8ea188d709a14e486beb24b00 (diff)
parent7143e0da037a0f56801023e2f8c17867814fe7b1 (diff)
downloadrails-4c3b3a2518f0f482f13a373e039c41be2487b752.tar.gz
rails-4c3b3a2518f0f482f13a373e039c41be2487b752.tar.bz2
rails-4c3b3a2518f0f482f13a373e039c41be2487b752.zip
Merge pull request #16832 from yuki24/use-match-via-all-in-custom-exceptions-app
[guides] Use `match ..., via: :all` in the custom exceptions app [ci skip]
-rw-r--r--guides/source/action_controller_overview.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md
index 4c04a06dbb..ca1e79d3ce 100644
--- a/guides/source/action_controller_overview.md
+++ b/guides/source/action_controller_overview.md
@@ -1183,9 +1183,9 @@ First define your app own routes to display the errors page.
* `config/routes.rb`
```ruby
- get '/404', to: 'errors#not_found'
- get '/422', to: 'errors#unprocessable_entity'
- get '/500', to: 'errors#server_error'
+ match '/404', via: :all, to: 'errors#not_found'
+ match '/422', via: :all, to: 'errors#unprocessable_entity'
+ match '/500', via: :all, to: 'errors#server_error'
```
Create the controller and views.