render_with_layout(view, template, path, locals) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/renderer/template_renderer.rb, line 64
      def render_with_layout(view, template, path, locals)
        layout  = path && find_layout(path, locals.keys, [formats.first])
        content = yield(layout)

        body = if layout
          view.view_flow.set(:layout, content)
          layout.render(view, locals) { |*name| view._layout_for(*name) }
        else
          content
        end
        build_rendered_template(body, template, layout)
      end
Register or log in to add new notes.