Add documentation about add/remove one tag. #307

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+7 −0
Split
View
@@ -78,6 +78,13 @@ To preserve the order in which tags are created use acts_as_ordered_taggable:
@user.tag_list # => ["north", "east", "south", "west"]
+ @user.tag_list.add = "northeast"
+ @user.tag_list.remove = "east"
+ @user.save
+
+ @user.reload
+ @user.tag_list # => ["north", "south", "west", "northeast"]
+
=== Finding Tagged Objects
Acts As Taggable On utilizes named_scopes to create an association for tags.