haml as default instead of erb

Hi,

if i have to file on views. let say

views/accounts/index.html.erb views/accounts/indehx.html.haml

how to make rails search for haml first then erb not the other way around..

thanks

Hi,

if i have to file on views. let say

views/accounts/index.html.erb views/accounts/indehx.html.haml

Is that a typo? Are they both supposed to be index?

how to make rails search for haml first then erb not the other way around..

Just delete the one you do not want. Why do you want to keep both of them?

Colin

> Hi,

> if i have to file on views. let say

> views/accounts/index.html.erb > views/accounts/indehx.html.haml

Is that a typo? Are they both supposed to be index?

yes sorry that is a typo. it should be views/accounts/index.html.haml

> how to make rails search for haml first then erb not the other way > around..

Just delete the one you do not want. Why do you want to keep both of them?

Colin

I want to start translating all view template to haml, but i need all other view to work. when there is both file, i want the haml to be default without deleting the erb

thanks

Why do you want to no delete it? You have source control? you can roll-back if you need to. Or if you are one of the crazy few who likes to code without a seat belt on (no source code control...), then rename the .erb to .erb.old

yes i have use git. Just thought that there is some options to make haml as default template engine instead of erb