rails 2.3.2 / ruby 1.9.1 / acts_as_ferret raises exception
Reported by Jens | February 13th, 2010 @ 12:35 AM
I've set up a debian server with ruby 1.9.1, rails 2.3.2,
postgres and
several gems. While I was able to get all my required gems
working
(including a patched ferret gem), acts_as_ferret does not work.
I've tried the gem and installed it as a plugin, but either way I
get the
following stack trace when I start the web server (I'm also
concerned
about the warning "undefining object_id' may cause serious
problem"):
=> Booting WEBrick => Rails 2.3.2 application starting on
http://0.0.0.0:3000
/usr/local/lib/ruby/gems/1.9.1/gems/ferret-0.11.8/lib/ferret/field_symbol.rb:8:
warning: undefining object_id' may cause serious
problem<br/>
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/vendor/builder-2.1.2/blankslate.rb:41:inreveal':
Don't know how to reveal method 'methods' (RuntimeError)
from
/usr/local/lib/ruby/gems/1.9.1/gems/acts_as_ferret-0.4.4/lib/search_results.rb:6:in
<class:SearchResults>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/acts_as_ferret-0.4.4/lib/search_results.rb:5:in
<module:ActsAsFerret>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/acts_as_ferret-0.4.4/lib/search_results.rb:1:in
<top (required)>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
block in require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in
new_constants_in'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/acts_as_ferret-0.4.4/lib/acts_as_ferret.rb:33:in
<top (required)>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
block in require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in
new_constants_in'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
require'
from /home/gernot/apps/app_template/config/environment.rb:12:in
block in <top (required)>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/initializer.rb:111:in
run'
from /home/gernot/apps/app_template/config/environment.rb:9:in
<top (required)>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
block in require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in
new_constants_in'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/commands/server.rb:84:in
<top (required)>'
Comments and changes to this ticket
-

sds April 15th, 2010 @ 08:04 PM
- Assigned user set to Jens
This is a Rails problem.
See http://pennysmalls.com/2009/03/24/ferret-on-ruby-191/comment-page-1...
https://rails.lighthouseapp.com/projects/8994/tickets/3001-blanksla...
AAF could avoid using this broken implementation of BlankSlate - Jens what do you think?
-

Jens May 29th, 2010 @ 02:37 PM
- State changed from new to resolved
fixed by using basicobject when present.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »