I really like the new mime type handler however I was trying to convert some code and couldn't figure out how.<br><br>My rails action was handle 2 formats, html and xml<br><br> respond_to do |format|<br> format.html
# show.html.erb<br> format.xml do<br> if @account.active? && @account.valid_referer?(session[:referer])<br> render :xml => @account.to_xml(:except => [:id, :created_at])<br> else
<br> render :text => 'your account has been disable'<br> end<br> end<br><br>Now that I'm trying to switch this controller to Merb, I can'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>