Update: switch to acts_as_taggable_on_steroids more features, less pain/bugs ![]()
Need simple input/output for tags and got acts_as_taggable_on_steroids ?
#vendor/plugins/acts_as_taggable_on_steroids/lib/acts_as_taggable.rb
#new @ LINE 189
def tags_as_text
tag_list
end
def tags_as_text= text
self.tag_list = text
end
and in your forms:
f.text_area('tags_as_text')
Done!
#Spec:
it "does not create duplicated tags" do
@taggable.tags_as_text = "Bad, Bad, Evil"
@taggable.save!
@taggable.tags.size.should == 2
end
#Often need count of Tags ?
#taggings.rb
belongs_to :tag, :counter_cache=>'taggings_count'
