diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2017-07-28 14:50:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-28 14:50:48 +0200 |
commit | c6a28b290ab68455e55bcfddc7dd42edf4909ad8 (patch) | |
tree | a0029e2f803dee1e4e6c52108f1942aea9d538a4 /guides | |
parent | 490c5a742f2616212cdf79e0218da1e710c9aaf6 (diff) | |
parent | 0e523ffc28b7e9d2600a76dc371769a320ccd0a5 (diff) | |
download | rails-c6a28b290ab68455e55bcfddc7dd42edf4909ad8.tar.gz rails-c6a28b290ab68455e55bcfddc7dd42edf4909ad8.tar.bz2 rails-c6a28b290ab68455e55bcfddc7dd42edf4909ad8.zip |
Merge pull request #29982 from ydakuka/patch-1
[ci skip] update routing guide
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/routing.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md index 6ed453a726..f52b1862a8 100644 --- a/guides/source/routing.md +++ b/guides/source/routing.md @@ -418,7 +418,7 @@ resources :articles do end ``` -Also you can use them in any place that you want inside the routes, for example in a scope or namespace call: +Also you can use them in any place that you want inside the routes, for example in a `scope` or `namespace` call: ```ruby namespace :articles do @@ -808,14 +808,14 @@ NOTE: For the curious, `'articles#index'` actually expands out to `ArticlesContr If you specify a Rack application as the endpoint for a matcher, remember that the route will be unchanged in the receiving application. With the following -route your Rack application should expect the route to be '/admin': +route your Rack application should expect the route to be `/admin`: ```ruby match '/admin', to: AdminApp, via: :all ``` If you would prefer to have your Rack application receive requests at the root -path instead, use mount: +path instead, use `mount`: ```ruby mount AdminApp, at: '/admin' |