Installing Acts_as_ferret - 0.4.3 config question

hello,

installing ferret / aaf for the first time

following instructions on aaf trac page

I’m to the point of copying the DRb server start/stop scripts and
config, where I read …
“Sorry for the inconvenience, things will get better with 0.4.2”

So, question is, since I’m deploying 0.4.3 - have things got better? Do
I still need to do this copy step?

Regards

Andy K. wrote:

hello,

installing ferret / aaf for the first time

following instructions on aaf trac page

I’m to the point of copying the DRb server start/stop scripts and
config, where I read …
“Sorry for the inconvenience, things will get better with 0.4.2”

So, question is, since I’m deploying 0.4.3 - have things got better? Do
I still need to do this copy step?

Regards

Ah, sorry

found the README and ran aaf_install

but, it throws an exception…

Do I need to define RAILS_ROOT somewhere? I’m calling aaf_install from
my proejct dir.

/var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:477:in
const_missing': uninitialized constant ActsAsFerret::Remote::Config::RAILS_ROOT (NameError) from /var/lib/gems/1.8/gems/acts_as_ferret-0.4.3/lib/ferret_server.rb:17 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
require' from /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:inrequire’
from
/var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in
new_constants_in' from /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:inrequire’
from
/var/lib/gems/1.8/gems/acts_as_ferret-0.4.3/lib/acts_as_ferret.rb:44
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from /usr/lib/ruby/1.8/rubygems.rb:237:in activate' from /usr/lib/ruby/1.8/rubygems.rb:236:ineach’
from /usr/lib/ruby/1.8/rubygems.rb:236:in activate' from /usr/lib/ruby/1.8/rubygems.rb:65:inactive_gem_with_options’
from /usr/lib/ruby/1.8/rubygems.rb:58:in `require_gem’
from /var/lib/gems/1.8/bin/aaf_install:17

Andy K. wrote:

/var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:477:in
`const_missing’: uninitialized constant
ActsAsFerret::Remote::Config::RAILS_ROOT (NameError)

Hi Andy.

I am experiencing the exact same thing.
Did you ever find a solution to your problem?

Torben Koch wrote:

Andy K. wrote:

/var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:477:in
`const_missing’: uninitialized constant
ActsAsFerret::Remote::Config::RAILS_ROOT (NameError)

Hi Andy.

I am experiencing the exact same thing.
Did you ever find a solution to your problem?

Hi Torben,

actually I’m having a hard time remembering how this worked out, I did
get it working.

As best I recall the aaf_install script never did work. I think I
looked at the source of the
“…/gems/acts_as_ferret-0.4.3/bin/aaf_install” - looking at that I saw
that it really only copies two files - “ferret_server” into script
folder and “ferret_server.yml” into config folder. Which I did
manually.

Maybe that helps?

Had the same issue. Try to move require ‘acts_as_ferret’ after
Rails::Initializer block

eg.

RAILS_GEM_VERSION = ‘2.0.2’ unless defined? RAILS_GEM_VERSION
require File.join(File.dirname(FILE), ‘boot’)

Rails::Initializer.run do |config|
end

require ‘acts_as_ferret’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs