开发者

rails 2.3.4 "Template is missing" when using haml

开发者 https://www.devze.com 2022-12-29 13:03 出处:网络
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.

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

精彩评论

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

关注公众号