Acts_as_ferret: Error with indexing

I have acts_as_ferret running on a simple production site.

Because I couldn’t get the DRb server to work and the index doesn’t have
to be that up to date anyway I decided to turn off automatic indexing,
at least for the moment. For this I have a method ferret_enabled? in the
relevant model (Page) that return false. Unfortunately when I do a
Page.rebuild_index I get an error message: ArgumentError: wrong number
of arguments (1 for 0)

Ferret 0.11.3
Rails 1.1.6
Ruby 1.8.5

The full error message:

ArgumentError: wrong number of arguments (1 for 0)
from
./script/…/config/…/config/…/vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:in
ferret_enabled?' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:inindex_records’
from
./script/…/config/…/config/…/vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:in
each' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:inindex_records’
from
./script/…/config/…/config/…/vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:29:in
measure_time' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:18:inindex_records’
from
./script/…/config/…/config/…/vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:52:in
index_model' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/class_methods.rb:66:inrecords_for_rebuild’
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in
transaction' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/transactions.rb:95:intransaction’
from
./script/…/config/…/config/…/vendor/plugins/acts_as_ferret/lib/class_methods.rb:61:in
records_for_rebuild' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:51:inindex_model’
from
./script/…/config/…/config/…/vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:39:in
index_models' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:39:ineach’
from
./script/…/config/…/config/…/vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:39:in
index_models' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/local_index.rb:60:inrebuild_index’
from
./script/…/config/…/config/…/vendor/plugins/acts_as_ferret/lib/class_methods.rb:33:in
`rebuild_index’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs