Well, that wasn't it. It appears to happen for top level classes in the inheritance hierarchy as well and for classes that are not even subclassed.
It only happens once per class type immediatly after restarting the Ferret backgroundrb process, after which things begin working. It does not help to require the classes in environment.rb Any suggestions? Thanks. Morten Morten wrote: > Hi, > > I *think* I'm getting closer to what's going on with this problem. > > Basically, the models that we're experiencing this with, are subclasses > (Rails STI), such that: > > class Entry < AR::Base > acts_as_ferret > end > > class Solution < Entry > end > > class Notice < Entry > end > > The problem may appear intermittently, because the subclassed models > have not been loadeded correctly somehow, and thus confusing ferret. If > I reload the page that causes the problem a few times, things usually > begin working. > > I suppose one way to do a quick fix would be to explicity require the > models in one of the initialization files (eg. environment.rb) such that > entry gets required first, and then each of the sub-classes. > > I'll see if I can reproduce this outside of production. > > Br, > > Morten > > > > > > Morten wrote: >> We've been running into problems with ferret indexing lately. The >> problem is intermittent and some times it persists. Just got this after >> wiping the index and redeploying: >> >> NoMethodError (undefined method `add' for Solution:Class): >> (druby://10.1.65.87:9009) >> /data/releases/20071111152414/vendor/rails/activerecord/lib/active_record/base.rb:1238:in >> >> `method_missing' >> (druby://10.1.65.87:9009) >> /data/releases/20071111152414/vendor/plugins/acts_as_ferret/lib/ferret_server.rb:71:in >> >> `send' >> (druby://10.1.65.87:9009) >> /data/releases/20071111152414/vendor/plugins/acts_as_ferret/lib/ferret_server.rb:71:in >> >> `method_missing' >> >> /data/releases/20071111152414/vendor/plugins/acts_as_ferret/lib/remote_index.rb:31:in >> >> `<<' >> >> /data/releases/20071111152414/vendor/plugins/acts_as_ferret/lib/instance_methods.rb:73:in >> >> `ferret_create' >> >> >> I'm running the latest stable version of AAF. Any tips or work arounds >> much appreciated. >> >> Morten _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

