mbleigh/acts-as-taggable-on — Issue #217: Got error while including 'acts_as_taggable' in the model
Author: NimishaS
Created: 2012-01-02 12:47:48+00:00
State: open

Hi,

I followed the steps mentioned on https://github.com/mbleigh/acts-as-taggable-on. Things seemed fine till migrating db. But I got this error on including 'acts_as_taggable' line in the model :

NoMethodError: undefined method `abstract_class?' for Object:Class
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.5/lib/active_record/base.rb:1206:in `class_of_active_record_descendant'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.5/lib/active_record/base.rb:824:in `base_class'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.5/lib/active_record/base.rb:956:in `compute_table_name'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.5/lib/active_record/base.rb:601:in `reset_table_name'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.5/lib/active_record/base.rb:591:in `table_name'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.5/lib/active_record/base.rb:673:in `table_exists?'
from /usr/local/lib/ruby/gems/1.9.1/gems/acts-as-taggable-on-2.1.1/lib/acts_as_taggable_on/acts_as_taggable_on/cache.rb:5:in `included'
from /usr/local/lib/ruby/gems/1.9.1/gems/acts-as-taggable-on-2.1.1/lib/acts_as_taggable_on/acts_as_taggable_on.rb:56:in `include'
from /usr/local/lib/ruby/gems/1.9.1/gems/acts-as-taggable-on-2.1.1/lib/acts_as_taggable_on/acts_as_taggable_on.rb:56:in `block in acts_as_taggable_on'
from /usr/local/lib/ruby/gems/1.9.1/gems/acts-as-taggable-on-2.1.1/lib/acts_as_taggable_on/acts_as_taggable_on.rb:45:in `class_eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/acts-as-taggable-on-2.1.1/lib/acts_as_taggable_on/acts_as_taggable_on.rb:45:in `acts_as_taggable_on'
from /usr/local/lib/ruby/gems/1.9.1/gems/acts-as-taggable-on-2.1.1/lib/acts_as_taggable_on/acts_as_taggable_on.rb:15:in `acts_as_taggable'
from (irb):1
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.5/lib/rails/commands/console.rb:44:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.5/lib/rails/commands/console.rb:8:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.5/lib/rails/commands.rb:23:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'

Any suggestions ?