title: Rails layouts per action?
body: <p>I use a different layout for some actions (mostly for the new action in most of the controllers).</p>
  
  <p>I am wondering what the best way to specify the layout would be? (I am using 3 or more different layouts in the same controller)</p>
  
  <p>I don't like using </p>
  
  <blockquote>
    <p>render :layout => 'name'</p>
  </blockquote>
  
  <p>I liked doing</p>
  
  <blockquote>
    <p>layout 'name', :only => [:new]</p>
  </blockquote>
  
  <p>But I can't use that to specify 2 or more different layouts. </p>
  
  <p>For example:</p>
  
  <p>When I call layout 2 times in the same controller, with different layout names and different only options, the first one gets ignored - those actions don't display in the layout I specified.</p>
  
  <p>Note: I'm using Rails 2.</p>