开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜