# Format.atom w Rails 2.2

**URL:** <https://www.ruby-forum.com/t/format-atom-w-rails-2-2/158744>\
**Category:** Rails\
**Created:** [January 27, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/format-atom-w-rails-2-2/158744 "2009-01-27T16:10:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [January 27, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/format-atom-w-rails-2-2/158744/1 "2009-01-27T16:10:57Z")

</div>

in Rails 2.1, this works… but I am stuck w Rails 2.2

class PostsController \< ApplicationController  
def show  
…  
respond\_to do |format|  
format.html  
format.atom { render :action =\> ‘changes’, :layout =\>  
false, :content\_type =\> ‘application/atom+xml’ }  
end  
end

def changes  
…  
respond\_to do |format|  
format.xml { render :layout =\> false, :content\_type =\>  
‘application/atom+xml’ }  
end  
end  
…  
end

I have a view, changes.xml.builder, building the xml code, but I got  
a missing template as an error, when executing  
[http://localhost:3000/posts/show/5](http://localhost:3000/posts/show/5)

ActionView::MissingTemplate (Missing template posts/changes.erb in  
view path …/Projects/franchising/app/views:):  
If I set a changes.erb, the xml code is sent…

how should I write that w Rails 2.2 ?

thanks a lot for your help

erwin

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [January 27, 2009, 4:29pm UTC](https://www.ruby-forum.com/t/format-atom-w-rails-2-2/158744/2 "2009-01-27T16:29:25Z")

</div>

mistaken… shoudl write changes.rxml and not xml.builder !!!  
dawned copy/paste !!
