module CaptureHelper
Ruby on Rails 8.0.4
Since v2.2.3Action View Capture Helpers
CaptureHelper exposes methods to let you extract generated markup which can be used in other parts of a template or layout file.
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.
As well as provides a method when using streaming responses through #provide. See ActionController::Streaming for more information.
Methods (defined here)
- # capture
- # content_for
- # content_for?
- # provide