Ferret and Mongrel and redirect_to

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

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

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
[email protected] | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs