title: RoR: template missing error while rendering JSON
body: <p>I have the following code in my controller:</p>
  
  <pre><code>def tljson (result = [])
    @stat_id = params[:stat_id]
    @rpm = FedoraRpm.find_by_name(@stat_id)
    @rpm.ruby_gem.historical_gems.each { |h|
      result &lt;&lt; { :content =&gt; h.version, :start =&gt; h.build_date }
      }
    @rpm.bugs.each { |b|
      result &lt;&lt; { :content =&gt; b.name + "&lt;br&gt;&lt;a href='"+b.url+"'&gt;View on BugZilla&lt;/a&gt;", :start =&gt; b.bz_id }
    }
    @res = result.to_json
      respond_to do |format|
      format.json { render @res.to_json }
      end
  end
  </code></pre>
  
  <p>Going to /tljson.json renders the JSON but the heading says 'Template is Missing; missing template'. What am I doing wrong?</p>