Problems with search_behavior

I installed the search behavior, ferret and acts_as_ferret but I can’t
get
it to work on my shared host (Site5). It works fine on my mac, but when
trying to launch script/server -e production I get this error on the
shared
host:

=> Booting WEBrick…
Load patches …
script/…/config/…/vendor/plugins/search_behavior/lib/patches/00_render_to_string.rb
script/…/config/…/vendor/plugins/search_behavior/lib/patches/01_behavior_receives_from_site_controller.rb
script/…/config/…/vendor/plugins/search_behavior/lib/patches/02_site_controller_gives_to_behavior.rb
script/…/config/…/vendor/plugins/search_behavior/lib/patches/03_template_load_path.rb
./script/…/config/…/lib/inheritable_class_attributes.rb:51:in
inherited': undefined local variable or methodchild’ for Behavior::Base:Class
(NameError)
from
./script/…/config/…/vendor/plugins/search_behavior/lib/search.rb:3
from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in
require' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:147:inrequire’
from
script/…/config/…/vendor/plugins/search_behavior/init.rb:13:in
load_plugin' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:348:inload_plugin’
from
./script/…/config/…/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in
silence_warnings' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:348:inload_plugin’
from
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:158:in
load_plugins' ... 7 levels... from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:18:inrequire’
from
./script/…/config/…/vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in
`require’
from
./script/…/config/…/vendor/rails/railties/lib/commands/server.rb:30
from script/server:3

The problem comes from this line

class Search < Behavior::Base

But obviously there is some problem I can’t troubleshoot. Any clue?

./script/…/config/…/lib/inheritable_class_attributes.rb:51:in inherited': undefined local variable or methodchild’ for Behavior::Base:Class

I have never seen this error message before. It seems like you should
be able to check line 51 in the file
lib/inheritable_class_attributes.rb and make more sense of what’s
going on. Given the fact that it works on your home computer but not
on the server, it might be an indication that there is something wrong
with the setup on the server.

On 10/4/06, Giovanni I. [email protected] wrote:

script/…/config/…/vendor/plugins/search_behavior/lib/patches/03_template_load_path.rb
require' ./script/../config/../vendor/rails/railties/lib/initializer.rb:348:inrequire’


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:
http://lists.radiantcms.org/mailman/listinfo/radiant


Alexander H.
http://www2.truman.edu/~ah428

I also thought that it’s a problem with the server setup but I can’t
troubleshoot it. Site5 hasn’t answered yet :frowning:

2006/10/5, Alexander H. [email protected]:

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