【发布时间】:2017-05-09 07:28:07
【问题描述】:
从 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 的情况下解决这个问题?
【问题讨论】:
-
如果你去他们的 github 页面,上面写着
Note: This plugin will be officially supported until the release of Rails 5.0. -
如果你在跟我说话,我并没有对你投反对票。