2012-03-26 18 views
2

ptsadmin @ ptsadmin-desktop:〜/ swaptan/26March/my_store $ rails g spree_news:install /home/ptsadmin/.rvm/gems/ruby- 1.9.3-preview1 /宝石/ ActiveRecordの-3.1.1/libに/ active_record/base.rb:1088:method_missing': undefined method mass_assignment_sanitizer中=」のためのActiveRecord ::ベース:クラス(NoMethodError)spreeをインストール中にエラーが発生しますか?未定義メソッドActiveRecord :: Base:Class(NoMethodError)のための `mass_assignment_sanitizer = '

答えて

2

編集Development.rb とコメントこれら2行

config.active_record.mass_assignment_sanitizer =厳密 config.active_record.auto_explain_threshold_in_seconds = 0.5

0

active_record宝石の正しいバージョンを使用していることを確認してください。3.2.12の場合は、this questionをご覧ください。

関連する問題