Forum: Ruby on Rails backgroundrb not loading other plugins

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Daniel G. (Guest)
on 2007-07-11 04:56
Hi all,

I'm using a few different plugins on a project, but I'm having trouble
getting the plugins to load when running from backgroundrb (I'm using
the old win32 happy version).

Specifically, acts_as_ferret is not loading:

here's the relevant part of the model:

class Book < ActiveRecord::Base
  acts_as_ferret :fields => [:title, :description, :subject, :author]
end


I have to customize acts_as_ferret slightly so it's installed as a
plugin rather than a gem. It's loading fine via mongrel and the console,
but when backgroundrb loads the rails environment, it seems like it's
there:

./script/backgroundrb/../../config/../vendor/rails/activerecord/lib/active_record/base.rb:1248:in
`method_missing': undefined method `acts_as_ferret' for Book:Class
(NoMethodError)
from ./script/backgroundrb/../../config/../app/models/book.rb:2
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
etc...

Can anyone tell me how I can force the plugin to load?

thanks,
Dan
This topic is locked and can not be replied to.