I did some searching and came up with this article: http://strd6.com/?p=250
Apparently this problem can also manifest with the error "can’t dup
NilClass"
The fix is easy: Add a line that says "unloadable" to the model you've
defined:
class Address < ActiveRecord::Base
unloadable # <-- right here
validates_presence_of
[:name
, :institution
, :url, :city, :state, :postal_code, :phone_number], :message => 'is
required'
end
It was an intermittent error in the first place, so it's hard to say
for sure, but I think this has fixed things for me. I'm writing this
just in case anyone else encounters it. It's apparently a problem
particular to applications that use engines plugins.
Bess