rails 2.3.4 "Template is missing" when using haml
How to make it work?
I have开发者_C百科 a file index.html.haml and a index.html.erb. the erb one works, then when i delete the erb, it gives me the template is missing error.
I have rails 2.3.4 and installed the haml gem.
"Template is missing Missing template profiles/index.erb in view path app/views"
Add config.gem "haml"
to your Rails::Initializer.run
block in your envrionment.rb file. The old haml --rails yourproject
is being phazed out.
You also need a run haml --rails yourproject
which will install a initalizer in vender/plugins/haml
.
精彩评论