[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]
This commit is contained in:
parent
078d86b655
commit
76c385709c
@ -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...
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user