diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2009-01-15 23:36:33 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2009-01-15 23:36:33 +0000 |
commit | 1da087ba5314c5d90c0a69c9e80af56683605c17 (patch) | |
tree | 2cb6a976db97b30f6ada882c2c821701c5b02877 /railties/doc | |
parent | 4cbf55344d07d552b00e1522b4e208bcaaf46504 (diff) | |
download | rails-1da087ba5314c5d90c0a69c9e80af56683605c17.tar.gz rails-1da087ba5314c5d90c0a69c9e80af56683605c17.tar.bz2 rails-1da087ba5314c5d90c0a69c9e80af56683605c17.zip |
Update route globbing documentation in routing guide
Diffstat (limited to 'railties/doc')
-rw-r--r-- | railties/doc/guides/source/routing_outside_in.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/doc/guides/source/routing_outside_in.txt b/railties/doc/guides/source/routing_outside_in.txt index 235832e4f3..b8ea7056e6 100644 --- a/railties/doc/guides/source/routing_outside_in.txt +++ b/railties/doc/guides/source/routing_outside_in.txt @@ -790,14 +790,14 @@ As with conditions in RESTful routes, you can specify +:get+, +:post+, +:put+, + === Route Globbing -Route globbing is a way to specify that a particular parameter (which must be the last parameter in the route) should be matched to all the remaining parts of a route. For example +Route globbing is a way to specify that a particular parameter should be matched to all the remaining parts of a route. For example [source, ruby] ------------------------------------------------------- map.connect 'photo/*other', :controller => 'photos', :action => 'unknown', ------------------------------------------------------- -This route would match +photo/12+ or +/photo/long/path/to/12+ equally well, creating an array of path segments as the value of +params[:other]+. +This route would match +photo/12+ or +/photo/long/path/to/12+ equally well, creating an array of path segments as the value of +params[:other]+. Originally this parameter had to be at the end of the route definition, however as of Rails 2.0 this is no longer the case. === Route Options |