Undefined method `add' called for #<ActsAsFerret::Remote::Se

undefined method `add’ called for
#ActsAsFerret::Remote::Server:0x7f5be279ea38

I am currently using ferret (0.11.6) and act_as_ferret (0.4.3)

My project is using rails 2.1.1 and ruby 1.8.6 along with sqlite3 and
Webrick.

I can start the ferret server and when I do ‘ps aux | grep ferret’ in
terminal I see the ferret server to be running.

I have a model and controller to create an object that has a title and
description. When I am starting my server and try to add an object in
the database it is not creating any object and I am getting the
following error.

“undefined method `add’ called for
#ActsAsFerret::Remote::Server:0x7f5be279ea38

I tried to search solution for this problem in google. But haven’t found
the solution. Please help me to solve the problem. I am a new ferret
user and not understanding what exactly to do. Please help me.

I am using active scaffold for my object. And my sample code is as
follows

class Object < ActiveRecord::Base

validates_presence_of :title, :message => “required”

#searchable fields
acts_as_ferret

end

class Admin::ObjectsController < Admin::BaseController

active_scaffold :object do |config|
# config.columns = :title, :content
config.columns = :title, :content
config.list.columns = :created_at, :title
config.create.columns = :title, :content
config.update.columns = :title,:content
# config.columns.content
end

end

I get the following information from Application Trace:

(druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:632:in
check_insecure_method' (druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:671:incheck_insecure_method’
(druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:676:in
setup_message' (druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:648:inperform’
(druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:715:in
main_loop' (druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:711:inloop’
(druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:711:in
main_loop' (druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:707:instart’
(druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:707:in
main_loop' (druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:599:inrun’
(druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:596:in
start' (druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:596:inrun’
(druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:549:in
initialize' (druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:737:innew’
(druby://localhost:3021) /usr/local/lib/site_ruby/1.8/drb/drb.rb:737:in
start_service' (druby://localhost:3021) /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/ferret_server.rb:79:instart’
(druby://localhost:3021)
/usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/unix_daemon.rb:18:in
call' (druby://localhost:3021) /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/unix_daemon.rb:18:inplatform_daemon’
(druby://localhost:3021)
/usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/unix_daemon.rb:41:in
fork' (druby://localhost:3021) /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/unix_daemon.rb:41:insafefork’
(druby://localhost:3021)
/usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/unix_daemon.rb:11:in
platform_daemon' (druby://localhost:3021) /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/ferret_server.rb:77:instart’
(druby://localhost:3021)
/usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/server_manager.rb:41:in
send' (druby://localhost:3021) /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/server_manager.rb:41 (druby://localhost:3021) /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
(druby://localhost:3021)
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in require' (druby://localhost:3021) script/ferret_server:9 /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/remote_index.rb:31:in<<’
/usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.3/lib/instance_methods.rb:90:in
ferret_create' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:insend’
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in
evaluate_method' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:incall’
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:93:in
run' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:92:ineach’
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:92:in
send' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:92:inrun’
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:272:in
run_callbacks' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/callbacks.rb:298:incallback’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/callbacks.rb:221:in
create_without_timestamps' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/timestamp.rb:29:increate’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:2472:in
create_or_update_without_callbacks' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/callbacks.rb:207:increate_or_update’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:2206:in
save_without_validation!' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/validations.rb:911:insave_without_dirty!’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/dirty.rb:83:in
save_without_transactions!' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:110:insave!’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in
transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:79:intransaction’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:98:in
transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:110:insave!’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:118:in
rollback_active_record_state!' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:110:insave!’
vendor/plugins/active_scaffold/lib/actions/create.rb:78:in do_create' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/database_statements.rb:66:intransaction’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:79:in
transaction' vendor/plugins/active_scaffold/lib/actions/create.rb:72:indo_create’
vendor/plugins/active_scaffold/lib/actions/create.rb:28:in create' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:insend’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in
perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:580:incall_filters’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in
perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:inperform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:inperform_action_without_rescue’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in
perform_action_without_caching' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:inperform_action’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
cache' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:incache’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in
perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:insend’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in
process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:inprocess_without_session_management_support’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in
sass_old_process' vendor/plugins/haml/lib/sass/plugin/rails.rb:19:inprocess’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in
process' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:inhandle_request’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in
dispatch' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:insynchronize’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in
dispatch' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:indispatch_cgi’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in
dispatch' /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/webrick_server.rb:112:inhandle_dispatch’
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/webrick_server.rb:78:in
service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start' /usr/lib/ruby/1.8/webrick/server.rb:162:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/lib/ruby/1.8/webrick/server.rb:92:ineach’
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/webrick_server.rb:62:indispatch’
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/webrick.rb:66
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in
require' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:innew_constants_in’
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in
require' /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
script/server:3

Thanks in advance.

Please help.