i used acts_as_ferret in my model
follow this step
1. my app is located in /home/<myusername>/test
2. i created a model call freelancer
in freelancer.rb
class Freelancer < ActiveRecord::Base
acts_as_ferret :remote => true
end
3. in environtment.rb i added
require 'acts_as_ferret'
to hook the plugin into Rails
4. I go to console --> ruby script/console production
and then
>> freelan = Freelancer.find_by_contents("xxx")
It shows error
DRb::DRbConnError: druby://localhost:9010 - #<Errno::ETIMEDOUT: Connection timed out - connect(2)>
from /usr/local/lib/ruby/1.8/drb/drb.rb:736:in `open'
from /usr/local/lib/ruby/1.8/drb/drb.rb:729:in `each'
from /usr/local/lib/ruby/1.8/drb/drb.rb:729:in `open'
from /usr/local/lib/ruby/1.8/drb/drb.rb:1189:in `initialize'
from /usr/local/lib/ruby/1.8/drb/drb.rb:1169:in `new'
from /usr/local/lib/ruby/1.8/drb/drb.rb:1169:in `open'
from /usr/local/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'
from /usr/local/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'
from /usr/local/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'
from /usr/local/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/remote_index.rb:16:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/remote_index.rb:16:in `method_missing'
from /usr/local/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/act_methods.rb:189:in `acts_as_ferret'
from /home/flinkon/test/app/models/freelancer.rb:3
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:104:in `require_or_load'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:248:in `load_missing_constant'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465:in `const_missing'
from (irb):1>>
------
When I try to search anything I get a application failed to start error. Any idea whats wrong?
and how to fix it?