Flowdock
method

render_with_layout

Importance_0
v3.2.8 - Show latest stable - 0 notes - Class: TemplateRenderer
render_with_layout(path, locals) public

No documentation

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

Hide source
# File actionpack/lib/action_view/renderer/template_renderer.rb, line 52
    def render_with_layout(path, locals) #:nodoc:
      layout  = path && find_layout(path, locals.keys)
      content = yield(layout)

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