aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAndy Waite <andyw8@users.noreply.github.com>2019-02-01 19:46:55 -0500
committerAndy Waite <andyw8@users.noreply.github.com>2019-02-01 19:48:35 -0500
commitfc548094612047ced508813fe0a6234399c76243 (patch)
treebe875fef3aa2bf30d4005a72133ebca1bbd2c542 /guides
parent2ccbddb48c96b0cda9641961541d7266591a3db7 (diff)
downloadrails-fc548094612047ced508813fe0a6234399c76243.tar.gz
rails-fc548094612047ced508813fe0a6234399c76243.tar.bz2
rails-fc548094612047ced508813fe0a6234399c76243.zip
Use consistent hash syntax for routes
[ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/routing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index a33ac6a589..92d5b45e7d 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -260,7 +260,7 @@ In each of these cases, the named routes remain the same as if you did not use `
| PATCH/PUT | /admin/articles/:id | articles#update | article_path(:id) |
| DELETE | /admin/articles/:id | articles#destroy | article_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'`._
+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', to: '/foo#index'`._
### Nested Resources