-2
从4.2.8更新到rails 5.1之后它在运行“软件包更新”时出错。在更新到rails 5.1后,在gem“activemodel”上发生错误
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?
如果你转到他们的github页面,它会说'注意:这个插件将被正式支持,直到Rails 5.0发布。' – Iceman
如果你在跟我说话,我并没有让你失望。 – Iceman