It's related to how Rails is compiling templates.  It *more or less*
ignores the extensions and compiles all the files in all directories
under the app/view.  It can also bite you if you rename a file to move
it out to keep an original version while trying something or if you
have a straight html version of the file.  I'd suggest that you make
sure you don't leave more than one view file with the same base name.
(i.e. if you try a haml version, rename the html.erb version.)
Remember this if you see a problem... else you would have to fix it by
overriding some core rails template code, which is a step on the road
to hurt!

Brendon

On Apr 22, 2:11 am, Max Williams <[email protected]>
wrote:
> SOLVED - I upgraded to rails 2.3.2 (this problem was happening for me in
> 2.3.0) and the problem went away.  It was definitely a problem with
> rails because i made a new app and it had the same problem, which also
> went away when i upgraded rails.
>
> So, it seems that rails 2.3.0 prefers view files ending in '.html.erb~'
> to ones that end in 'html.erb'.  Something to watch out for.  I'm still
> curious as to why it was doing that, if anyone knows, and how to tell it
> not to (in case it starts happening again).
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to