Spree不能与安装的protected_attributes gem一起使用

时间:2016-11-04 10:08:18

标签: ruby-on-rails ruby-on-rails-4 ruby-on-rails-3.2 spree rails-upgrade

我正在将我的应用程序从 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.
***************************************************************************

任何帮助将不胜感激。

0 个答案:

没有答案