instance method
write_fragment_for
Ruby on Rails 8.0.4
Since v5.2.8.1 PrivateSignature
write_fragment_for(name, options, &block)
No documentation comment.
Parameters
-
namereq -
optionsreq -
blockblock
Source
# File actionview/lib/action_view/helpers/cache_helper.rb, line 292
def write_fragment_for(name, options, &block)
fragment = output_buffer.capture(&block)
controller.write_fragment(name, fragment, options)
end
Defined in actionview/lib/action_view/helpers/cache_helper.rb line 292
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::CacheHelper