On 9/22/06, Ilya Grigorik <[EMAIL PROTECTED]> wrote: > Hey, > > Has anyone managed to bypass or fix the ferret's .dump method problem? > When I include acts_as_ferret my whole rails app just blows up because > of Ferret's .dump method. Ex: > > --- > print "\t hello".dump >> "\t hello">Exit code: 0 > --- > > --- > require 'ferret' > print "\t hello".dump >> " hello"(NUL char)>Exit code: 0 > --- > > Essentially this breaks erb and thus Rails template engines dies. I've > found topics on this issue before and best recommendation I've found is > 'remove all tabs in your rhtml files'. Now, first off it fails even on > non-tab characters in my case, so this is a no go... (Not to mention > that this is hardly a solution) > > I'm running: > ruby 1.8.4 (2006-04-14) [i386-mswin32] > rails 1.1.6 > ferret 0.10.4 (10.6 and all the rest all have same issue)
Hi Ilya, Firstly, String#dump isn't a Ferret method. Secondly, I have no idea why this is occuring. The error isn't happening in Ferret code so it is difficult for me to diagnose the problem. I didn't realize that it was this easy to replicate the problem though so I'll have another look at it tonight. Don't get your hopes up though. It isn't only Ferret that is causing this problem so I'm not goig to count out the possibility that the bug is in Ruby of VC6. Cheers, Dave _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

