Search code examples
camping

Can I tell render *not* to use layout?


If I want to have a special view, say for embedding in an iframe, can I pass something to the render method to have it avoid wrapping my view with the layout, or use a specific layout to do the wrapping?


Solution

  • Sure:

    render :foobar, :layout => false