Ruby错误:没有这样的文件加载 - haml(MissingSourceFile)

时间:2010-01-29 06:28:03

标签: ruby-on-rails rubygems

运行项目时出现此错误:

C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': 
no such file to load -- haml (MissingSourceFile)

2 个答案:

答案 0 :(得分:1)

您安装了haml ruby​​gem吗?

gem install haml

答案 1 :(得分:1)

您可能需要添加:

config.gem haml 

到您的environment.rb文件