22
Qualsiasi idea del perché sto ottenendo questo errore:Perché sto ottenendo "metodo non definito` assert_valid_keys` "?
Exception encountered: #<NoMethodError: undefined method `assert_valid_keys' for :widget:Symbol>
quando provo a fare un Factory.build(:widget)
sul seguente modello:
class Widget < ActiveRecord::Base
belongs_to :designer, :vendor
# ...
end
Quando rimuovo la linea belongs_to
l'errore va via.