From 8453addedcea6e42a5df3d241225a32698121072 Mon Sep 17 00:00:00 2001 From: Robert Pankowecki Date: Tue, 31 Jul 2012 20:28:02 +0200 Subject: [PATCH] Update #match documentation [ci skip] --- actionpack/lib/action_dispatch/routing/mapper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index a4f868593aaaa..4c4d12998faa4 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -404,6 +404,10 @@ def root(options = {}) # # # Matches any request starting with 'path' # match 'path' => 'c#a', :anchor => false + # + # [:format] + # Allows you to specify default value for optional +format+ segment + # or disable it if you supply +false+ def match(path, options=nil) end