Skip to content
This repository
Browse code

Properly escaped a + in the dynamic segments TIP

  • Loading branch information...
commit f44e0e82717062b3043a9ce65a8274f338817c83 1 parent 3b7cf23
tashian authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  railties/guides/source/routing.textile
2  railties/guides/source/routing.textile
Source Rendered
@@ -391,7 +391,7 @@ NOTE: You can't use +namespace+ or +:module+ with a +:controller+ path segment.
391 391 match ':controller(/:action(/:id))', :controller => /admin\/[^\/]+/
392 392 </ruby>
393 393
394   -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.
  394 +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.
395 395
396 396 h4. Static Segments
397 397

0 comments on commit f44e0e8

Please sign in to comment.
Something went wrong with that request. Please try again.