-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