Module: LayoutsHelper
- Defined in:
- app/helpers/layouts_helper.rb
Overview
Instance Method Summary collapse
Instance Method Details
#parent_layout(layout) ⇒ Object
4 5 6 7 8 |
# File 'app/helpers/layouts_helper.rb', line 4 def parent_layout(layout) @view_flow.set(:layout, output_buffer) # rubocop:todo Rails/HelperInstanceVariable output = render(template: "layouts/#{layout}") self.output_buffer = ActionView::OutputBuffer.new(output) end |