ptsadmin @ ptsadmin-desktop:〜/ swaptan / 26March / my_store $ rails g spree_news:install
/home/ptsadmin/.rvm/gems/ruby-1.9.3-preview1/gems/activerecord-3.1.1/lib/active_record/base.rb:1088:in method_missing': undefined method
mass_assignment_sanitizer ='for ActiveRecord :: Base :Class(NoMethodError)
答案 0 :(得分:2)
编辑Development.rb 并评论这两行
config.active_record.mass_assignment_sanitizer =:strict config.active_record.auto_explain_threshold_in_seconds = 0.5
答案 1 :(得分:0)
确保使用正确版本的active_record
gem,大概是3.2.12,请查看this question以获取更多信息。