我正在尝试从Rails 4.1.9升级到Rails 4.2,当我尝试运行控制台或服务器时,出现以下错误。有什么想法吗?我以为HTML-scanner gem包含在Action :: View中
gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- action_view/vendor/html-scanner (LoadError)
OP的问题(也是我的问题)与原型导轨宝石的不兼容有关。可以通过直接从github使用prototype-rails的“ 4.2”分支来解决。修改您的Gemfile条目,如下所示:
gem 'prototype-rails', github: 'rails/prototype-rails', branch: '4.2'
请注意,Rails 5及更高版本将不支持prototype-rails gem,因此现在与删除此依赖项的时间一样好。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句