1

我正在将我的应用程序从升级rails 3.2rails 4. 我正在关注这个 Railscast#415 Upgrading to Rails 4

rails server当我在我的大礼包中添加protected_attributesgem后尝试启动我的游戏时,Gemfile出现了这个错误,我无法启动服务器。

宝石文件

source 'https://rubygems.org'

# Other gems
gem 'rails', '~> 4.2.7'
#...
gem 'spree', '~> 3.1.0'

# Gems for upgrading to rails 4
gem 'protected_attributes'
gem 'activeresource'
gem 'activerecord-session_store'
gem 'activerecord-deprecated_finders'

错误:

$ rails server

***************************************************************************
[FATAL] Spree does not work with the protected_attributes gem installed!
You MUST remove this gem from your Gemfile. It is incompatible with Spree.
***************************************************************************

任何帮助将不胜感激。

4

0 回答 0