aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRory O’Kane <rory@roryokane.com>2012-05-24 11:39:31 -0300
committerRory O’Kane <rory@roryokane.com>2012-05-24 11:39:31 -0300
commitaa54d29f9b3068a40b67f055726696fa51a3baef (patch)
tree121692fb3b49fe8b43634709627aafdd00538638 /guides
parent03fa7085a958cfd07fe7088a6b83a79d6f0eb602 (diff)
downloadrails-aa54d29f9b3068a40b67f055726696fa51a3baef.tar.gz
rails-aa54d29f9b3068a40b67f055726696fa51a3baef.tar.bz2
rails-aa54d29f9b3068a40b67f055726696fa51a3baef.zip
grammar fixes in a tip in Rails routing guide
Diffstat (limited to 'guides')
-rw-r--r--guides/source/routing.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/routing.textile b/guides/source/routing.textile
index 4a50edbb15..d77b3bc7cd 100644
--- a/guides/source/routing.textile
+++ b/guides/source/routing.textile
@@ -395,7 +395,7 @@ NOTE: You can't use +:namespace+ or +:module+ with a +:controller+ path segment.
get ':controller(/:action(/:id))', :controller => /admin\/[^\/]+/
</ruby>
-TIP: By default dynamic segments don't accept dots - this is because the dot is used as a separator for formatted routes. If you need to use a dot within a dynamic segment add a constraint which overrides this - for example +:id+ => /[^\/]+/ allows anything except a slash.
+TIP: By default dynamic segments don't accept dots - this is because the dot is used as a separator for formatted routes. If you need to use a dot within a dynamic segment, add a constraint that overrides this – for example, +:id+ => /[^\/]+/ allows anything except a slash.
h4. Static Segments