From 76c385709c873a7105e3a267d84c4e70417a15e2 Mon Sep 17 00:00:00 2001 From: Akira Matsuda & saya Date: Fri, 8 Jan 2016 17:19:36 +0900 Subject: [doc] The capture method isn't always used inside views to create a variable but rather very often used inside helpers to directly return a String value. [ci skip] --- actionview/lib/action_view/helpers/capture_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionview/lib/action_view/helpers') diff --git a/actionview/lib/action_view/helpers/capture_helper.rb b/actionview/lib/action_view/helpers/capture_helper.rb index 93c7cba395..df8d0affd0 100644 --- a/actionview/lib/action_view/helpers/capture_helper.rb +++ b/actionview/lib/action_view/helpers/capture_helper.rb @@ -9,8 +9,8 @@ module ActionView # It provides a method to capture blocks into variables through capture and # a way to capture a block of markup for use in a layout through content_for. module CaptureHelper - # The capture method allows you to extract part of a template into a - # variable. You can then use this variable anywhere in your templates or layout. + # The capture method extracts part of a template as a String object. + # You can then use this object anywhere in your templates, layout, or helpers. # # The capture method can be used in ERB templates... # -- cgit v1.2.3