2017-05-09 64 views
-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?

+1

如果你转到他们的github页面,它会说'注意:这个插件将被正式支持,直到Rails 5.0发布。' – Iceman

+2

如果你在跟我说话,我并没有让你失望。 – Iceman

回答

2

作为该项目的自述文件规定:

这个插件将正式支持,直到导轨释放5.0

所以,无论是维护自己的叉子,保持兼容性和Rails 5.0及以上或咬子弹并拥抱强大的参数。

相关问题