# Confused on how rails 2.3.2 renders templates

**URL:** <https://www.ruby-forum.com/t/confused-on-how-rails-2-3-2-renders-templates/169041>\
**Category:** Rails\
**Created:** [May 28, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/confused-on-how-rails-2-3-2-renders-templates/169041 "2009-05-28T17:52:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 28, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/confused-on-how-rails-2-3-2-renders-templates/169041/1 "2009-05-28T17:52:37Z")

</div>

I am migrating to rails 2.3.2

What I found confusing is that in some cases when I have a template  
named:

“something.html.erb” it is looking for “something.erb”, but in other  
cases “something.html.erb” works fine.  
I looked at a couple of cases and did not see any obvious reason why  
that seemed to be the case where it was looking for one type of file  
name in one place and a different in another.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 28, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/confused-on-how-rails-2-3-2-renders-templates/169041/2 "2009-05-28T17:54:23Z")

</div>

On Thu, May 28, 2009 at 8:51 AM, removed\_email\_address@domain.invalid  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> that seemed to be the case where it was looking for one type of file  
> name in one place and a different in another.

Please post the relevant code that’s requesting something.erb so that  
we can better assist.

-Conrad

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 28, 2009, 6:03pm UTC](https://www.ruby-forum.com/t/confused-on-how-rails-2-3-2-renders-templates/169041/3 "2009-05-28T18:03:15Z")

</div>

I think I figured out what was going on. When I had a file named  
“something.html.erb.save” in the view directory, rails 2.3.2 for some  
strange reason decided to render that template instead of  
“something.html.erb”. When I deleted “something.html.erb.save” then  
rails 2.3.2 looked for “something.erb” which did not exist, though  
something.html.erb" did exist. When I restarted web brick however  
after deleting “something.html.erb.save”, then it did find  
“something.html.erb” ok.  
So Rails was keeping state info when the server was running
