class ActionView::PartialRenderer
def render_partial_template(view, locals, template, layout, block)
Experimental RBS support (using type sampling data from the type_fusion
project).
def render_partial_template: ((#<Class:0x000000010fd1fb40> | #<Class:0x0000000116d6fe68> | #<Class:0x000000010d86d540>) view, Hash locals, ActionView::Template template, nil layout, nil block) -> ActionView::AbstractRenderer::RenderedTemplate
This signature was generated using 5 samples from 1 application.
def render_partial_template(view, locals, template, layout, block) ActiveSupport::Notifications.instrument( "render_partial.action_view", identifier: template.identifier, layout: layout && layout.virtual_path ) do |payload| content = template.render(view, locals, add_to_stack: !block) do |*name| view._layout_for(*name, &block) end content = layout.render(view, locals) { content } if layout payload[:cache_hit] = view.view_renderer.cache_hits[template.virtual_path] build_rendered_template(content, template) end end