Confused on how rails 2.3.2 renders templates


#1

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.


#2

On Thu, May 28, 2009 at 8:51 AM, removed_email_address@domain.invalid
removed_email_address@domain.invalidwrote:

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


#3

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