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?