From c5fcc9ad1cd95854c3c8129f453982c6acd8fd61 Mon Sep 17 00:00:00 2001 From: Robert Pankowecki Date: Tue, 31 Jul 2012 20:22:44 +0200 Subject: Update #resources documentation [ci skip] --- actionpack/lib/action_dispatch/routing/mapper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/lib/action_dispatch') diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 0a65b4dbcc..a4f868593a 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -1186,6 +1186,10 @@ module ActionDispatch # sekret_comment PATCH/PUT /comments/:id(.:format) # sekret_comment DELETE /comments/:id(.:format) # + # [:format] + # Allows you to specify default value for optional +format+ segment + # or disable it if you supply +false+ + # # === Examples # # # routes call Admin::PostsController -- cgit v1.2.3 From 8453addedcea6e42a5df3d241225a32698121072 Mon Sep 17 00:00:00 2001 From: Robert Pankowecki Date: Tue, 31 Jul 2012 20:28:02 +0200 Subject: Update #match documentation [ci skip] --- actionpack/lib/action_dispatch/routing/mapper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/lib/action_dispatch') diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index a4f868593a..4c4d12998f 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -404,6 +404,10 @@ module ActionDispatch # # # 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 -- cgit v1.2.3 From cbcfbdd078c1f69f65a31d87b218fb41f495ce0f Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Tue, 31 Jul 2012 14:16:46 -0500 Subject: fix punctuation in #resources and #match documentation [ci skip] --- actionpack/lib/action_dispatch/routing/mapper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'actionpack/lib/action_dispatch') diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 4c4d12998f..90b45d6502 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -406,8 +406,8 @@ module ActionDispatch # match 'path' => 'c#a', :anchor => false # # [:format] - # Allows you to specify default value for optional +format+ segment - # or disable it if you supply +false+ + # Allows you to specify the default value for optional +format+ + # segment or disable it if you supply +false+. def match(path, options=nil) end @@ -1191,8 +1191,8 @@ module ActionDispatch # sekret_comment DELETE /comments/:id(.:format) # # [:format] - # Allows you to specify default value for optional +format+ segment - # or disable it if you supply +false+ + # Allows you to specify the default value for optional +format+ + # segment or disable it if you supply +false+. # # === Examples # -- cgit v1.2.3 From b51201242aaf77c6db5a9b2f72e433c521df79c5 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Sat, 4 Aug 2012 14:30:21 +0530 Subject: copy edits [ci skip] --- actionpack/lib/action_dispatch/routing/mapper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_dispatch') diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 90b45d6502..f5e1450f8a 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -407,7 +407,7 @@ module ActionDispatch # # [:format] # Allows you to specify the default value for optional +format+ - # segment or disable it if you supply +false+. + # segment or disable it by supplying +false+. def match(path, options=nil) end @@ -1192,7 +1192,7 @@ module ActionDispatch # # [:format] # Allows you to specify the default value for optional +format+ - # segment or disable it if you supply +false+. + # segment or disable it by supplying +false+. # # === Examples # -- cgit v1.2.3