From the examples listed in the README..
@some_user.tag(@some_photo, :with => "paris, normandy", :on => :locations)
class User < ActiveRecord::Base
acts_as_tagger
acts_as_authentic
end
This is my script/console output.
>> m = Mark.create :name => "first mark", :url => 'http://example.com'
=> #<Mark id: 97, name: "first mark", url: "http://example.com", note: nil, created_at: "2010-03-19 06:26:51", updated_at: "2010-03-19 06:26:51">
>> m.tags
=> []
>> m.labels
=> []
>> m.label_list = "star, first"
=> "star, first"
>> m.tag_list = 'white, blue'
=> "white, blue"
>> m.save!
=> true
>> m.reload
=> #<Mark id: 97, name: "first mark", url: "http://example.com", note: nil, created_at: "2010-03-19 06:26:51", updated_at: "2010-03-19 06:26:51">
>> m.tags
=> [#<Tag id: 25, name: "white">, #<Tag id: 26, name: "blue">]
>> m.labels
=> [#<Tag id: 23, name: "star">, #<Tag id: 27, name: "first">]
>> m.tag_list
=> ["white", "blue"]
>> m.label_list
=> ["star", "first"]
>> u = User.find :first
=> #<User id: 1, username: "me", email: "[email protected]", ...>
>> u.tag(m, :with => 'funny', :on => :tags)
=> true
>> m.reload
=> #<Mark id: 97, name: "first mark", url: "http://example.com", note: nil, created_at: "2010-03-19 06:26:51", updated_at: "2010-03-19 06:26:51">
>> m.tags
=> [#<Tag id: 25, name: "white">, #<Tag id: 26, name: "blue">, #<Tag id: 28, name: "funny">]
>> m.tag_list
=> ["white", "blue"]
>> # the above should be ["white", "blue", "funny"]