aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/routing.md
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2014-01-05 19:58:04 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2014-01-05 19:58:04 +0000
commit3a48b83e5eec62a5d2bfab1a118c24b45345388c (patch)
tree4d6ec108a94373c05026521940d67563f85b71a3 /guides/source/routing.md
parenta1564d470d688eecd5fd01ee771521764cba4b7b (diff)
downloadrails-3a48b83e5eec62a5d2bfab1a118c24b45345388c.tar.gz
rails-3a48b83e5eec62a5d2bfab1a118c24b45345388c.tar.bz2
rails-3a48b83e5eec62a5d2bfab1a118c24b45345388c.zip
Allow an absolute controller path inside a module scope
Fixes #12777
Diffstat (limited to 'guides/source/routing.md')
-rw-r--r--guides/source/routing.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index 3375293b5a..70d4722068 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -239,6 +239,8 @@ In each of these cases, the named routes remain the same as if you did not use `
| PATCH/PUT | /admin/posts/:id | posts#update | post_path(:id) |
| DELETE | /admin/posts/:id | posts#destroy | post_path(:id) |
+TIP: _If you need to use a different controller namespace inside a `namespace` block you can specify an absolute controller path, e.g: `get '/foo' => '/foo#index'`._
+
### Nested Resources
It's common to have resources that are logically children of other resources. For example, suppose your application includes these models: