Skip to content
Browse files

Update route globbing documentation in routing guide

  • Loading branch information...
1 parent 4cbf553 commit 1da087ba5314c5d90c0a69c9e80af56683605c17 @pixeltrix pixeltrix committed Jan 15, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/doc/guides/source/routing_outside_in.txt
View
4 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

0 comments on commit 1da087b

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