Acts_as_taggable - swiss knife for pages link

This tag gem is very old and has pretty decent user guide in its github page here.  

My crib:

  1. Delete unused tags
    
ActsAsTaggableOn::Tag.joins("LEFT JOIN taggings on taggings.tag_id = tags.id").where("taggings.id is null").delete_all
ActsAsTaggableOn::Tagging.joins("LEFT JOIN tags on tags.id = taggings.tag_id").where("tags.id is null").delete_all
    

In short, this is about:
#tags
#acts_as_toggable

Start discussion:
Related articles: