class ActionView::TemplateRenderer
def render_with_layout(view, template, path, locals)
Experimental RBS support (using type sampling data from the type_fusion
project).
def render_with_layout: ((#<Class:0x0000000122b3d530> | #<Class:0x0000000110baf520>) view, (ActionView::Template::Renderable | ActionView::Template) template, Proc? path, Hash locals) -> ActionView::AbstractRenderer::RenderedTemplate
This signature was generated using 2 samples from 1 application.
def render_with_layout(view, template, path, locals) layout = path && find_layout(path, locals.keys, [formats.first]) body = if layout ActiveSupport::Notifications.instrument("render_layout.action_view", identifier: layout.identifier) do view.view_flow.set(:layout, yield(layout)) layout.render(view, locals) { |*name| view._layout_for(*name) } end else yield end build_rendered_template(body, template) end