diff options
author | Stefan Rohlfing <stefan.rohlfing@gmail.com> | 2011-04-28 00:25:03 -0700 |
---|---|---|
committer | Stefan Rohlfing <stefan.rohlfing@gmail.com> | 2011-04-28 00:25:03 -0700 |
commit | 4c50a0f80034a8f7f111ad88709d6fa0c407f82e (patch) | |
tree | 4a67d524370f9ce1eab962cf9df17e880cfcb1f4 | |
parent | 001a5a649609840bd14bd4ae6a12be0c074e7f67 (diff) | |
download | rails-4c50a0f80034a8f7f111ad88709d6fa0c407f82e.tar.gz rails-4c50a0f80034a8f7f111ad88709d6fa0c407f82e.tar.bz2 rails-4c50a0f80034a8f7f111ad88709d6fa0c407f82e.zip |
Edited railties/guides/source/routing.textile via GitHub
-rw-r--r-- | railties/guides/source/routing.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile index 43c08165dc..99fdcee68a 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 => /[^\/]<plus>/+ 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+ => /[^\/]+/ allows anything except a slash. h4. Static Segments @@ -660,7 +660,7 @@ end NOTE: Of course, you can use the more advanced constraints available in non-resourceful routes in this context. -TIP: By default the +:id+ parameter doesn't accept dots - this is because the dot is used as a separator for formatted routes. If you need to use a dot within an +:id+ add a constraint which overrides this - for example +:id => /[^\/]+/+ allows anything except a slash. +TIP: By default the +:id+ parameter doesn't accept dots - this is because the dot is used as a separator for formatted routes. If you need to use a dot within an +:id+ add a constraint which overrides this - for example +:id+ => /[^\/]+/ allows anything except a slash. h4. Overriding the Named Helpers |