Module: Prosperity::LayoutsHelper

Defined in:
app/helpers/prosperity/layouts_helper.rb

Instance Method Summary collapse

Instance Method Details

#parent_layout(layout) ⇒ Object



3
4
5
6
7
# File 'app/helpers/prosperity/layouts_helper.rb', line 3

def parent_layout(layout)
  @view_flow.set(:layout, output_buffer)
  output = render(:file => "layouts/#{layout}")
  self.output_buffer = ActionView::OutputBuffer.new(output)
end