从4.2.8更新到rails 5.1后,它在运行'bundle update'时出错。
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
protected_attributes (~> 1.1.4) was resolved to 1.1.4, which depends on
activemodel (< 5.0, >= 4.0.1)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activemodel (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activemodel (= 5.1.0)
似乎protected_attributes gem与rails版本5.1不兼容。有没有办法解决这个问题而不删除protected_attributes gem?
答案 0 :(得分:2)
正如该项目的自述文件所述:
此插件将正式支持,直到Rails 5.0发布
因此要么维护自己的fork,以保持与Rails 5.0及更高版本的兼容性,要么咬紧牙关并拥抱强大的参数。