class ActionView::Template
def render(view, locals, buffer = ActionView::OutputBuffer.new, add_to_stack: true, &block)
Experimental RBS support (using type sampling data from the type_fusion
project).
def render: (#<Class:0x000000010f1b3fe0> view, Hash locals, ?ActionView::OutputBuffer buffer, add_to_stack: true, ) -> untyped
This signature was generated using 1 sample from 1 application.
we use a bang in this instrumentation because you don't want to
This method is instrumented as "!render_template.action_view". Notice that
exactly before rendering.
Render a template. If the template was not compiled yet, it is done
def render(view, locals, buffer = ActionView::OutputBuffer.new, add_to_stack: true, &block) instrument_render_template do compile!(view) view._run(method_name, self, locals, buffer, add_to_stack: add_to_stack, &block) end rescue => e handle_render_error(view, e) end