method
render_template
v4.2.1 -
Show latest stable
- Class:
ActionView::StreamingTemplateRenderer
render_template(template, layout_name = nil, locals = {})public
For streaming, instead of rendering a given a template, we return a Body object that responds to each. This object is initialized with a block that knows how to render the template.