Hi ! On Wed, Sep 20, 2006 at 11:23:14AM -0400, Rafe Colburn wrote: > We have an application that uses Ferret and acts_as_ferret that we > just upgraded to Ferret 0.10.5 (from 0.9.5) and the corresponding > version of the acts_as_ferret. Everything works as expected on my > laptop, which is running mongrel 0.3.13.3. When I deploy the > application on our server, which is running some version of Red Hat > Linux, I can't get Ferret to work at all when running under mongrel > (again, version 0.3.13.3). Oddly, everything works fine if I open a > console and rebuild the index or run a search. > > When I access the site via the web and try to modify a document > that triggers indexing, I get the following error: > > A NoMethodError occurred in questions#update_faq: > > undefined method `new' for Ferret::Document:Module > [RAILS_ROOT]/vendor/plugins/acts_as_ferret/lib/instance_methods.rb: > 110:in `to_doc' > > When I try to run a search, I get no results at all even though the > documents are indexed. (I can run searches fine from the Rails console.) > > Anyone ever seen anything like this? I have no idea what it is > about the ferret/mongrel/Linux combination that's causing these > problems.
is it possible that there is an old Ferret 0.9.x still lying around on your server ? imho in 0.9.x Ferret::Document was a module, and Ferret::Document::Document was the class. In 0.10.x Ferret::Document is a class. I have different versions of Ferret and aff running with Mongrel without any problem. Jens -- webit! Gesellschaft für neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Krämer [EMAIL PROTECTED] Schnorrstraße 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66 _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

