instance method
write_fragment_for
Ruby on Rails 7.1.6
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 284
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 284
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::CacheHelper