我正在将我的应用程序从 rails 3.2
升级到 rails 4
。我正在关注此Railscast #415 Upgrading to Rails 4
当我在rails server
狂欢中添加protected_attributes
gem后尝试启动Gemfile
时,我发现此错误,我无法启动服务器。
的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.
***************************************************************************
任何帮助将不胜感激。