Closed baban closed 12 years ago
以下の症状で発現するようです
・テーブル名からモデルの名前が推測できない ・プライマリキーとして、idというカラムが存在しない
その場合、テーブル名からモデル名が推測できるようになればいいので flextures.factory.rbに以下のように記述して、テーブル名からモデル名が推測できるようにすれば解決します
Flextures::Factory.define :d_questions, Question do |f| end
DEPRECATION WARNING: You're trying to create an attribute
id'. Writing arbitrary attributes on a model is deprecated. Please just use
attr_writer` etc. (called from write_attribute at /Users/matsubaramasanao/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.2/lib/active_record/attribute_methods/write.rb:32)