[Backgroundrb-devel] plugin not loading for model? (acts_as_ferret)
ruby at geoffgarside.co.uk
Wed Jul 11 04:43:15 EDT 2007
On 11 Jul 2007, at 02:16, Daniel Greig wrote:
> Hi all,
> I'm using the older win32 happy backgroundrb in combination with the
> 'acts_as_ferret' install as a plugin.
> Since I've installed acts_as_ferret, I haven't been able to get
> backgroundrb to start. It keeps failing at the 'acts_as_ferret' method
> call in one of my models.
> Here's a code snippet of the model:
> class Book < ActiveRecord::Base
> acts_as_ferret :fields => [:title, :description, :subject, :author]
You'll need the ':remote => true' option on the acts_as_ferret call.
> It keeps failing when it gets to the acts_as_ferret call in the model:
> `method_missing': undefined method `acts_as_ferret' for Book:Class
> from ./script/backgroundrb/../../config/../app/models/book.rb:2
> from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> I'm guessing that backgroundrb isn't loading other plugins whent the
> rails environment loads, but I'm not really sure. I've tried to
> acts_as_ferret in the backgroundrb start script (but I'm probably
> it wrong).
> Is anyone able to help with how to get this working, or am I
> off track?
You might need to tweak your backgroundrb rails middle man to make
sure its loading in the plugins, I would expect it to be doing so
though, but I've not used the earlier versions of backgroundrb.
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
Hope that helps,
More information about the Backgroundrb-devel