public
Description: Repository for improving Rails documentation
Homepage: http://www.rubyonrails.org
Clone URL: git://github.com/lifo/doc-rails.git
Search Repo:
added an example path to resources :requirements option docs that has a 
format
Xavier Noria (author)
Wed Apr 23 00:24:14 -0700 2008
commit  6b00dc3ea5dce07768e77742d6a6b97ce463d4f5
tree    0db82d5c534bce0cc416c96dadf651cad3b881b9
parent  0e599c4bae7d9339855c395e6611632bd5f6d3a3
...
242
243
244
245
246
247
 
 
 
 
248
249
250
...
242
243
244
 
 
 
245
246
247
248
249
250
251
0
@@ -242,9 +242,10 @@
0
     # * <tt>:singular</tt> - Specify the singular name used in the member routes.
0
     # * <tt>:requirements</tt> - Set custom routing parameter requirements. For example:
0
     #
0
- # # GET /products/001 => { :controller => 'products', :action => 'show', :id => '001' }
0
- # # GET /products/1 => RoutingError
0
- # # GET /products/1234 => RoutingError
0
+ # # GET /products/001 => :id => '001'
0
+ # # GET /products/053.xml => :id => '053'
0
+ # # GET /products/1 => RoutingError
0
+ # # GET /products/1234 => RoutingError
0
     # map.resources :products, :requirements => { :id => /\d\d\d/ }
0
     #
0
     # * <tt>:conditions</tt> - Specify custom routing recognition conditions. Resources sets the <tt>:method</tt> value for the method-specific routes.

Comments

    No one has commented yet.