mbleigh / acts-as-taggable-on

A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.
http://mbleigh.lighthouseapp.com/projects/10116-acts-as-taggable-on
MIT License
4.98k stars 1.19k forks source link

How to do mass updates for resources with certain tags? #924

Closed mazib closed 6 years ago

mazib commented 6 years ago

I was migrating Posts to a new Model, and everything migrated just fine, but each Post.tag_list migrated to the model with a non-delimited string.

So if my Post.first.tag_list = "business, opinion, sandwich" -- it moved over to my Model as Model.first.tag_list = "business opinion sandwich"

How can I update all my resources that are tagged with "business opinion sandwich" to be "business, opinion, sandwich" for example? (i want the commas instead of a single long string)

Can't find anything about this, spent a lot of time looking for any solutions past few days.