Hello, I try and run mongrel 1.0.1 and ferret 0.11.4 on Windows XP. To break mongrel all I have to do is invoke a class with Ferret in it. Here''s my class: require ''ferret'' include Ferret class SearchIndex def initialize print "SearchIndex:Initialize\n"; end end When I put this in my controller, I break mongrel: searchIndex = SearchIndex.new I can no longer perform a redirect_to properly. calls like this fail: redirect_to ''/wiki/page/'' I see this in the logs. Error calling Dispatcher.dispatch #<NameError: cannot remove Object::Document> If I comment out the call to the SearchIndex class, all is well. Ryan -- Posted via http://www.ruby-forum.com/.
Ryan McHale wrote: Looks like this fixed it: http://www.ruby-forum.com/topic/90752#188252 Ie: moving the include inside my class. I definitely think this should be mentioned in the documentation some where. Ryan> Hello, > > I try and run mongrel 1.0.1 and ferret 0.11.4 on Windows XP. > > To break mongrel all I have to do is invoke a class with Ferret in it. > > Here''s my class: > > require ''ferret'' > include Ferret > > class SearchIndex > > def initialize > print "SearchIndex:Initialize\n"; > end > > end > > > When I put this in my controller, I break mongrel: > searchIndex = SearchIndex.new > > I can no longer perform a redirect_to properly. > calls like this fail: redirect_to ''/wiki/page/'' > > I see this in the logs. > Error calling Dispatcher.dispatch #<NameError: cannot remove > Object::Document> > > If I comment out the call to the SearchIndex class, all is well. > > > Ryan-- Posted via http://www.ruby-forum.com/.
On Wed, Oct 03, 2007 at 03:34:29PM +0200, Ryan McHale wrote:> Ryan McHale wrote: > > Looks like this fixed it: > http://www.ruby-forum.com/topic/90752#188252 > > Ie: moving the include inside my class.good to know.> I definitely think this should be mentioned in the documentation some > where.Just added it to the Wiki: http://projects.jkraemer.net/acts_as_ferret/wiki/gotchas#StrangeproblemswhenusingcustomAnalyzers Cheers, Jens -- Jens Kr?mer webit! Gesellschaft f?r neue Medien mbH Schnorrstra?e 76 | 01069 Dresden Telefon +49 351 46766-0 | Telefax +49 351 46766-66 kraemer at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa