Ishrat Sami
2008-Oct-08 09:43 UTC
undefined method add called for ActsAsFerret::Remote::Server
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 attachment has the information I got from Application Trace:
Thanks in advance.
Please help.
Attachments:
http://www.ruby-forum.com/attachment/2785/ferret_bug_application_trace
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Reasonably Related Threads
- acts_as_ferret ActsAsFerret::IndexNotDefined
- uninitialized constant ActsAsFerret (NameError)
- Rspec + Devise + BaseController
- Problem with RESTful resource and ActiveScaffold
- rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column' for #<ActionView::Base:
