I get this error message from the following code:
require ‘rubygems’
require ‘ferret’
include Ferret
index = Index::Index.new(:path => ‘/tmp/index’)
index << {:title => “Programming Ruby”, :content => “blah blah blah”}
index << {:title => “Programming Ruby”, :content => “yada yada yada”}
Yes, gems is installed and ferret is as well. Here’s the exact output:
./ferret.rb:3: uninitialized constant Ferret (NameError)
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
require__' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
require’
from test_ferret.rb:2
Any ideas what I’m doing wrong? Ruby version 1.8.2
Thanks!
John