# Problem with Rails 2 and XML Builder

**URL:** <https://www.ruby-forum.com/t/problem-with-rails-2-and-xml-builder/126070>\
**Category:** Rails\
**Created:** [January 15, 2008, 6:18am UTC](https://www.ruby-forum.com/t/problem-with-rails-2-and-xml-builder/126070 "2008-01-15T06:18:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chirag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@chirag](https://www.ruby-forum.com/u/chirag)\
**Post date:** [January 15, 2008, 6:18am UTC](https://www.ruby-forum.com/t/problem-with-rails-2-and-xml-builder/126070/1 "2008-01-15T06:18:59Z")

</div>

I get the following error after converting to Rails 2 when trying to  
serve an XML file (xml.builder file)

ActionController::MissingTemplate (Missing template chart/  
refresh\_activity\_data.html.erb in view path /Users/madhukarpadma/  
Desktop/halo2.0/app/views):  
/vendor/rails/actionpack/lib/action\_controller/base.rb:1269:in  
`assert\_existence\_of\_template\_file’

The view is an XML builder file called  
refresh\_activity\_data.xml.builder

The code in the chart\_controller is  
render :template =\> ‘chart/refresh\_activity\_data’, :layout =\> false

What do we change this last line to exactly to get the xml.builder  
file?

Thanks,

Chirag
