我正在尝试在此博客文章中的控制器中使用 Sass 引擎。但是 Rails (2.3.4) ActiveSupport 不能加载它,因为一个错误:
ArgumentError (Anonymous modules have no name to be referenced by):
haml (3.0.25) lib/sass/script/color.rb:19
haml (3.0.25) lib/sass/script/literal.rb:10
haml (3.0.25) lib/sass/script/string.rb:1
haml (3.0.25) lib/sass/script/operation.rb:2
haml (3.0.25) lib/sass/script.rb:5
haml (3.0.25) lib/sass/engine.rb:22
app/controllers/stylesheets_controller.rb:1
这是代码Sass::Script::Color
class << self; include Haml::Util; end
我尝试使用最新的 Haml 版本和 2.2.24 版本,结果相同。有兼容的版本吗?我这边有问题吗?