Skip to content
Create a gist now

Instantly share code, notes, and snippets.

allow you nest you layout in rails application
#nested layout.
def parent_layout(layout)
@_content_for[:layout] = self.output_buffer
self.output_buffer = render(:file => "layouts/#{layout}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.