title: Ruby-on-Rails: Help with render: layout => false
body: <p>I am trying to access a rails app resource from an API (it sends an Application/XML GET request) and I would like to not have to parse the XML file.</p>
  
  <p>In my resources controller I have the following:</p>
  
  <pre><code>def get_resource
      @my_resource = Resources.new
      render :xml =&gt; @my_resource
  end
  </code></pre>
  
  <p>which produces an xml file as expected. If i replace it with:</p>
  
  <pre><code>render :layout =&gt; false
  </code></pre>
  
  <p>my API reports a "template missing" error. I've also tried the following:</p>
  
  <pre><code>render :xml =&gt; @identity, :layout =&gt; false
  </code></pre>
  
  <p>But the page renders anyway. What's the right way to go about this?</p>