Module ActionView::Helpers::NestedLayoutsHelper
In: vendor/plugins/nested_layouts/lib/nested_layouts.rb

Methods

Public Instance methods

Wrap part of the template into layout.

If layout doesn’t contain ’/’ then corresponding layout template is searched in default folder (‘app/views/layouts’), otherwise it is searched relative to controller’s template root directory (‘app/views/’ by default).

[Source]

    # File vendor/plugins/nested_layouts/lib/nested_layouts.rb, line 10
10:       def inside_layout(layout, &block)
11:         layout = layout.include?('/') ? layout : "layouts/#{layout}"
12:         concat(@template.render_file(layout, true, '@content_for_layout' => capture(&block)), block.binding)
13:       end

[Validate]