diff options
author | tashian <carl@ppolitics.org> | 2011-03-03 15:04:39 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-03-05 11:56:33 +0100 |
commit | e95b965926a11d77aee379d9557ad1bee155dd7a (patch) | |
tree | c63f277b27a563d460c5d17cd78c7657a194fe92 /railties/guides | |
parent | 3eca9d5b43c270d01ac92491281dd96a5ceaa783 (diff) | |
download | rails-e95b965926a11d77aee379d9557ad1bee155dd7a.tar.gz rails-e95b965926a11d77aee379d9557ad1bee155dd7a.tar.bz2 rails-e95b965926a11d77aee379d9557ad1bee155dd7a.zip |
Properly escaped a + in the dynamic segments TIP
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/routing.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile index d214031b31..c447fd911a 100644 --- a/railties/guides/source/routing.textile +++ b/railties/guides/source/routing.textile @@ -391,7 +391,7 @@ NOTE: You can't use +namespace+ or +:module+ with a +:controller+ path segment. match ':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 which overrides this - for example +:id => /[^\/]<plus>/+ allows anything except a slash. h4. Static Segments |