I don't use the AAF gem, but do have a require statement in a 
initializer in config/intializers that pulls in acts_as_ferret. Any 
chance you can supply a more detailed back trace that sheds some light 
on what class is causing trouble? Do you also have trouble booting 
script/console?

-c-

Dave Anderson wrote:
> I recently upgraded to Rails 2.2.2 and refactored some of my rails code
> to use the config.gem functionality. In doing so, I noticed some odd
> behavior when trying to start the DrbServer. Essentially, the DrbServer
> will not start unless I have the "require 'acts_as_ferret" statement
> below in environment.rb. I thought the gem.config would have been
> enough, but apparently not.
> 
> -- start environment.rb --
> 
> Rails::Initializer.run do |config|
> 
> [...]
> 
>   # Requires acts_as_ferret must be here, can't figure out why
>   require 'acts_as_ferret'
> 
>   config.gem 'acts_as_ferret', :version => '0.4.3'
>   config.gem 'ferret', :version => '0.11.6'
> 
> [...]
> 
> end
> 
> -- end environment.rb --
> 
> Here's the error message I receive when the require is left out.
> 
> -- error --
> 
> [EMAIL PROTECTED] $ script/ferret_server -e production start
> undefined method `acts_as_ferret' for #<Class:0x22f9bec>
> 
> -- end snip --
> 
> Any ideas if this is normal?

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to