Forum: Ruby on Rails undefined method add called for ActsAsFerret::Remote::Server

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ishrat S. (Guest)
on 2008-10-08 13:43
Attachment: ferret_bug_application_trace (0 Bytes)
undefined method `add' called for

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

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

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

class Object < ActiveRecord::Base

  validates_presence_of   :title, :message => "required"

  #searchable fields


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


I attachment has the information I got from Application Trace:

Thanks in advance.

Please help.
This topic is locked and can not be replied to.