2017-05-09 70 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及以上或咬子彈並擁抱強大的參數。

相關問題