On 9/2/06, Mufaddal Khumri <[EMAIL PROTECTED]> wrote: > This is wierd: > > I had the above app working fine for a day and just got back to it today > and get an error. > > Here is the code from f.rb: > --------------------------------- > require 'rubygems' > require 'ferret' > include Ferret > index = Index::Index.new(:path => '/opt/search-index') > --------------------------------- > > Exception thrown: > --------------------------------- > ./ferret.rb:3: uninitialized constant Ferret (NameError) > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require' > from f.rb:2 > --------------------------------- > > Any ideas?
Yes, you have a file called ferret.rb in your current directory which is being loaded instead of the Ferret gem. Try renaming the file and everything should work again. Cheers, Dave _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

