mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Properly escaped a + in the dynamic segments TIP
This commit is contained in:
parent
3eca9d5b43
commit
e95b965926
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue