title: Rails 3 - custom XML response
body: <p>currently i'm using this: </p>
  
  <pre><code>if @part.save
    format.xml  { render :xml =&gt; @part, :status =&gt; :created, :location =&gt; @part }
  else
    format.xml  { render :xml =&gt; @part.errors, :status =&gt; :unprocessable_entity }
  end
  </code></pre>
  
  <p>i need a custom response, that is an xml with <code>&lt;result&gt;OK&lt;/result&gt;</code> if the part was correctly saved, and <code>&lt;result&gt;OK&lt;/result&gt;</code> else.</p>
  
  <p>How can i do this?</p>
  
  <p>Thanks!</p>