得到错误
/home/sachin/.rvm/gems/ruby-2.3.4/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- dry/types/compat/form_types (LoadError)
在我的一个项目中尝试“捆绑更新”时。我的 Gemfile 中有 gem 'dry-validation' 请让我知道是什么导致了这个问题,因为在包更新之前它工作正常,但现在我无法启动我的 rails 项目。
评论下面的代码后,它工作正常。
require 'reform/form/dry'
Reform::Form.class_eval do
include Reform::Form::Dry
end