Welcome Guest | Login

LoadError (Acts as ferret) in model

I have an model called item which I'm using acts_as_ferret to search.

class Item < ActiveRecord::Base
 acts_as_ferret
end

However I'm getting this message in my production log:



Processing MainController#index (for 89.100.186.111 at 2008-01-12 12:14:52) [GET]
 Session ID: BAh7CDoNcGFzc3dvcmQiEnRoaXJ0ZWVuY2hhcnM6DGNzcmZfaWQiJWJjNDk0%0AZmYyMmMwNTZiN2E2OGM3MDgyZWUwMGJkZjE4IgpmbGFzaElDOidBY3Rpb25D%0Ab250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--c916b815fd78d517f750daaebb06c6a48a7849a8
 Parameters: {"action"=>"index", "controller"=>"main"}


LoadError (Expected /home/lostie/lost.ie_v2/app/models/item.rb to define Item):
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:249:in `load_missing_constant'
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing'
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-



When I comment out acts_as_ferret everything works fine.
I read here someone had the same bug and the solution was to roll back to an earlier release of ferret.
http://groups.google.com/group/torror/browse_thread/thread/892302a5466483b3/e39d51fd27922d9f?lnk=raot


Does anyone have any better suggestions?

2008-01-12 12:28 PM

I've added the following lines in your environment.rb file.
------
require 'rubygems'
gem 'acts_as_ferret'
--
Now I'm getting the following error in the production logs.
DRb::DRbConnError (druby://localhost:9010 - #<Errno::ECONNREFUSED: Connection refused - connect(2)>):

You don't have access to the server through port 9010. Also as per your current plan you don't have any assigned port on the server. You may need to purchase additional dedicated memory so that you can use the assigned port.

2008-01-12 02:56 PM

Hi Santhi,

I have the same error and have beginner plan. What plan do i have to be in in order to use acts_as_ferret. In another thread(1197), someone have 50 mb memory and still can NOT run aaf. Hope you're not going to tell me to upgrade to professional plan!

2008-08-18 02:17 AM

As I've mentioned earlier in this thread you need to purchase additional dedicated memory to run acts_as_ferret .

2008-08-18 03:51 AM

So, how much  memory do i need in order to run acts_as_ferret?

2008-08-18 10:58 AM

Hi Tamm,

You need 50 MB of dedicated memory to run acts_as_ferret.

2008-08-18 11:05 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.