method
provide
v5.0.0.1 -
Show latest stable
- Class:
ActionView::Helpers::CaptureHelper
provide(name, content = nil, &block)public
The same as content_for but when used with streaming flushes straight back to the layout. In other words, if you want to concatenate several times to the same buffer when rendering a given template, you should use content_for, if not, use provide to tell the layout to stop looking for more contents.