Acts_as_taggable errors (gem)

Hi,

I’m using the 2.0.2 version of the acts_as_taggable gem, along with
Rails 1.1.6. I have a model Item:

class Item < ActiveRecord::Base
acts_as_taggable

end

Then, I run ruby script/console:

Item.find_tagged_with(‘whatever’)
NameError: uninitialized constant Tag
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:123:in const_missing' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:131:inconst_missing’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
inflector.rb:161:in constantize' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ core_ext/string/inflections.rb:59:inconstantize’
from
/usr/lib/ruby/gems/1.8/gems/acts_as_taggable-2.0.2/lib/taggable.rb:
169:in acts_as_taggable' from script/../config/../config/../app/models/item.rb:3 from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:140:inload’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:56:in require_or_load' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:30:independ_on’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:85:in require_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ dependencies.rb:98:inconst_missing’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:131:in `const_missing’
from (irb):1

@l = Item.find_tagged_with(‘beautiful’)
NoMethodError: undefined method find_tagged_with' for Item:Class from /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/b ase.rb:1129:inmethod_missing’
from (irb):2

I understand none of the two errors. Any help?

Regards,
Robert

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