method
render
v7.0.0 -
Show latest stable
- Class:
ActionView::Template
render(view, locals, buffer = ActionView::OutputBuffer.new, add_to_stack: true, &block)public
Render a template. If the template was not compiled yet, it is done exactly before rendering.
This method is instrumented as “!render_template.action_view”. Notice that we use a bang in this instrumentation because you don’t want to consume this in production. This is only slow if it’s being listened to.