在我的rails项目中,我正在使用haml_assets gem
registration.jst.eco.haml
档案的内容:
= form_for :contact, url: "javascript_not_working", html: {:class => :edit_contact, :method => :put} do |f|
= f.label :name, "Name"
= f.text_field :name, class: 'text required', value: '{{name}}'
当我运行jasmine测试时,我在浏览器中遇到了这个错误:
TypeError: Object true has no method 'replace'
(in .../app/assets/templates/users/registration.jst.eco.haml)
并在控制台中:
ERROR: compiling .../app/assets/templates/users/registration.jst.eco.haml
RAISED undefined method `rails_safe_buffer_class' for Haml::Util:Module
我甚至只尝试了帮助:
= form_for :contact
并且错误相同
如何解决此错误?感谢