I really like the new mime type handler however I was trying to convert some code and couldn&#39;t figure out how.<br><br>My rails action was handle 2 formats, html and xml<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; respond_to do |format|<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; format.html
 # show.html.erb<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; format.xml do<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if @account.active? &amp;&amp; @account.valid_referer?(session[:referer])<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; render :xml =&gt; @account.to_xml(:except =&gt; [:id, :created_at])<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; render :text =&gt; &#39;your account has been disable&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end<br><br>Now that I&#39;m trying to switch this controller to Merb, I can&#39;t figure how to have a custom xml builder and how to have a condition to the mime type render.
<br><br>Any help would be greatly appreciated.<br><br>Thanks<br><br>-Matt<br>