提交 76c38570 编写于 作者: A Akira Matsuda & saya 提交者: Akira Matsuda

[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]
上级 078d86b6
......@@ -9,8 +9,8 @@ module Helpers
# 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...
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册