davidcelis/recommendable — Issue #10: NameError: uninitialized constant
Author: Kelend
Created: 2012-03-03 22:58:13+00:00
State: open

I'm getting the following stack trace and unsure why

NameError: uninitialized constant Beer::
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/base.rb:1341:in `compute_type'
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/reflection.rb:173:in `klass'
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/associations/association.rb:118:in `klass'
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/associations/association.rb:166:in `find_target?'
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:327:in `load_target'
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:51:in `load_target'
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:89:in `method_missing'
from /app/vendor/bundle/ruby/1.9.1/bundler/gems/recommendable-d808cc550090/lib/recommendable/acts_as_recommendable.rb:81:in `create_liked_by_set'
from /app/vendor/bundle/ruby/1.9.1/bundler/gems/recommendable-d808cc550090/lib/recommendable/acts_as_recommendable.rb:40:in `create_recommendable_sets'
from /app/vendor/bundle/ruby/1.9.1/bundler/gems/recommendable-d808cc550090/lib/recommendable/acts_as_recommended_to.rb:604:in `predict'
from /app/vendor/bundle/ruby/1.9.1/bundler/gems/recommendable-d808cc550090/lib/recommendable/acts_as_recommended_to.rb:588:in `block in update_recommendations_for'
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/relation/batches.rb:21:in `block (2 levels) in find_each'
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/relation/batches.rb:21:in `each'
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/relation/batches.rb:21:in `block in find_each'
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/relation/batches.rb:69:in `find_in_batches'
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/relation/batches.rb:20:in `find_each'
from /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.1/lib/active_record/base.rb:443:in `find_each'
from /app/vendor/bundle/ruby/1.9.1/bundler/gems/recommendable-d808cc550090/lib/recommendable/acts_as_recommended_to.rb:586:in `update_recommendations_for'
from /app/vendor/bundle/ruby/1.9.1/bundler/gems/recommendable-d808cc550090/lib/recommendable/acts_as_recommended_to.rb:577:in `block in update_recommendations'
from /app/vendor/bundle/ruby/1.9.1/bundler/gems/recommendable-d808cc550090/lib/recommendable/acts_as_recommended_to.rb:577:in `each'
from /app/vendor/bundle/ruby/1.9.1/bundler/gems/recommendable-d808cc550090/lib/recommendable/acts_as_recommended_to.rb:577:in `update_recommendations'
from (irb):1
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/commands/console.rb:45:in `start'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/commands/console.rb:8:in `start'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:40:in `'
from script/rails:6:in `require'