At the moment, there doesn't appear to be a way to retrieve a set of records with any tag, given a context. For example, with User having acts_as_taggable_on :skills, I'd like all the user objects that have any kind of skill tag associated with it.
The closest functionality to this is via a hacky method with tagged_with:
# Users with any kind of skill tag
users = User.tagged_with("doesnotexist", on: "skills", exclude: true)
At the moment, there doesn't appear to be a way to retrieve a set of records with any tag, given a context. For example, with
User
havingacts_as_taggable_on :skills
, I'd like all the user objects that have any kind of skill tag associated with it.The closest functionality to this is via a hacky method with
tagged_with
: