title: Getting "Template is missing" when using XmlMarkup builder in Rails
body: <p>I'm learning Rails, and I'm trying to get a XML output of my update ActiveRecord. This is my <code>routes.rb</code>:</p>
  
  <pre><code>Sparklizer::Application.routes.draw do
    resources :updates
    get "updates/new"
    get "updates/list"
    get "home/index"
    match "updates/xml/:id" =&gt; "updates#xmlOut"
  end
  </code></pre>
  
  <p><code>match "updates/xml/:id" =&gt; "updates#xmlOut"</code> is where I try to output XML. This is the <code>xmlOut</code> method:</p>
  
  <pre><code>def xmlOut
          render :layout =&gt; false
  
          headers['Content-Type'] = 'application/xml'
          @xml = Builder::XmlMarkup.new
          @update = Update.find(params[:id])
          xml.instruct!  :xml, :version=&gt; "1.0"
              xml.declare!  :DOCTYPE, :html,  :PUBLIC, "-//W3C//DTD XHTML 1.0 Strict//EN", "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
  
              xml.update {
                  for data in @update
                      xml.data do
                          xml.title(data.title)
                          xml.description(data.description)
                      end
                  end
              }
      end
  </code></pre>
  
  <p>When running and accessing to <code>/updates/xml/2</code> I get</p>
  
  <pre><code>Template is missing
  
  Missing template updates/xmlOut, application/xmlOut with {:handlers=&gt;[:erb, :builder, :coffee], :formats=&gt;[:html], :locale=&gt;[:en, :en]}. Searched in: * "/Users/pablo/Documents/Workspace/Sparklizer/app/views"
  </code></pre>
  
  <p>What I'm doing wrong? Thanks!</p>