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.97k stars 1.19k forks source link

tagged_with to include un-tagged? #799

Open vikas-wadhwa opened 7 years ago

vikas-wadhwa commented 7 years ago

Are there any implementations or tricks for finding all instances of the model with EITHER a certain or NO tags at all?

i.e. something like

User.tagged_with_or_none("awesome")

Returning users with a tag of "awesome" OR users who don't have any tags at all?

tacataca commented 5 years ago

Hello @vikas-wadhwa Im looking exactly for this at the moment. Did you ever figure out a sane way to obtain this?

ahmetabdi commented 5 years ago

Just do the where query yourself, it seems like this isn't possible with tagged_with