title: using different layouts for an entire controller
body: <p>I'm having problems with something that should be simple.</p>
  
  <p>I have two use cases... </p>
  
  <ul>
  <li>The user is the site directly </li>
  <li>The user is using an iframe from
  another site</li>
  </ul>
  
  <p>I want to do the same thing in either case except I don't want to use the layout for my website in the case it's the iframe so I have a "plain" layout</p>
  
  <pre><code>layout "plain"
  </code></pre>
  
  <p>How can I dynamically assign the layout depending on the case..</p>
  
  <p>ie <code>params[:iframe] == true</code>   etc.</p>
  
  <p>Nothing I do seems to work.</p>