aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/routing.md
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2015-06-07 14:51:53 +0200
committerRobin Dupret <robin.dupret@gmail.com>2015-06-07 14:53:24 +0200
commit27eccc27cbe987be04bb97b49aff1d7fd118634c (patch)
tree9f3cfba2ffb773955ea288fa883418b6b0ef83de /guides/source/routing.md
parentc429674f8625fccdc7c2a0e685f122de4531552c (diff)
downloadrails-27eccc27cbe987be04bb97b49aff1d7fd118634c.tar.gz
rails-27eccc27cbe987be04bb97b49aff1d7fd118634c.tar.bz2
rails-27eccc27cbe987be04bb97b49aff1d7fd118634c.zip
A few documentation tweaks [ci skip]
[Robin Dupret & Shunsuke Aida]
Diffstat (limited to 'guides/source/routing.md')
-rw-r--r--guides/source/routing.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index b1e4c8ad86..52f11f92bd 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -809,13 +809,16 @@ As long as `Sprockets` responds to `call` and returns a `[status, headers, body]
NOTE: For the curious, `'articles#index'` actually expands out to `ArticlesController.action(:index)`, which returns a valid Rack application.
-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':
+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':
```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:
+If you would prefer to have your Rack application receive requests at the root
+path instead, use mount:
```ruby
mount AdminApp, at: '/admin'