Compass, Haml alongside Sass installation took over ERB, need to reverse
- by Nik
Hi all,
I've been trying out Compass for a few days now, and just now I ran into some strange problem:
The past few days, as usual, whenever I use my textmate shortcut to create a partial if not already created, that partial will be created in .erb format, but then just now, a few minutes ago, I have no idea what I have done, when I tried to create a new partial, it is prompting me to create one that ends with .haml. when I didn't create that and manually created a .erb partial with all the code that was suppose to go in there, I tried to load the page that uses that partial, it says the partial is missing. That kind of tells me now Rails is looking for Haml templates instead of erb templates. That means all my other partials are useless. And indeed they have become!!! I don't know how this happened. It was working fine with ERB just minutes ago, and suddenly Haml took over and demand all partials be written in it.
So my question:
Can I keep both Haml and Erb in one Rails application and use mostly erb except for Sass/compass related files?
Where in Rails does it state what templating format (erb | haml) it should use?
Thanks!