From 1da087ba5314c5d90c0a69c9e80af56683605c17 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Thu, 15 Jan 2009 23:36:33 +0000 Subject: Update route globbing documentation in routing guide --- railties/doc/guides/source/routing_outside_in.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/doc') 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 -- cgit v1.2.3