title: Rendering to arbitrary layout files in Rails 3
body: <p>How would I go about rendering with an arbitrary layout file in my Rails 3 application?</p>
  
  <p>Reading 2.2.4 Rendering an Arbitrary File in <a href="http://guides.rubyonrails.org/layouts_and_rendering.html#using-render" rel="nofollow">http://guides.rubyonrails.org/layouts_and_rendering.html#using-render</a> tells me this is possible for files (just pass a <code>:file</code> option to the <code>render</code> call that starts with a leading slash. </p>
  
  <p>However in Rails 3.0.1 this does <em>not</em> work for the <code>:layout</code> option, which is what I wanted: render an arbitrary file to an arbitrary layout. </p>