# Weird template behaviour

**URL:** <https://www.ruby-forum.com/t/weird-template-behaviour/124297>\
**Category:** Rails\
**Created:** [December 27, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/weird-template-behaviour/124297 "2007-12-27T14:05:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/dc4da7/32.png) [@atd](https://www.ruby-forum.com/u/atd)\
**Post date:** [December 27, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/weird-template-behaviour/124297/1 "2007-12-27T14:05:06Z")

</div>

I have searched for this problem, but I can’t find anything. It is a  
bit frustrating

I have upgraded my application to Rails 2.0  
I wish to use the new template system, so I move index.rhtml to  
index.html.erb, and \_feed.rxml to index.atom.builder  
Delete respond\_to in the action. Restart the server.

When requesting controller/index I get the right output. But  
requesting controller/index.atom gets just the index.html.erb  
template, without layout.

I restart the server. This time, I request controller/index.atom  
first. I get the index.atom.builder template literal, without  
processing. Just xml.\* statements. Next, I request controller/index. I  
get the same index.atom.builder literal template, this time inside the  
application.html.erb layout

Any ideas?? Is it a bug?
