New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tags with same name / one lowercase #661
Comments
You can set the option |
The solution above works for preventing that problem in the future. Is there anything built in to deal with existing duplicates? It's not possible to rename the first "Branding" tag as "branding" without first removing the "branding" tag. |
@starspace1 I had to create a class to clean them up. Basically calling both methods on the tag with upcase chars:
|
Problem is that we have some duplicated tags in production with uppercase and lowercase (e.g. "Medios" and "medios"). The gem expects them to be all lowercase. And as such, some methods of the gem fail (`Proposal.tagged_with('Medios')` returns 0 results). So I have implemented my own thing using activerecord relationships. Reference issue in acts_as_taggable_on: mbleigh/acts-as-taggable-on#661
acts_as_taggable_on: 3.4 gem
rails: 4.2.2
I'm currently coding a cms with tagging and although autocomplete is added and working for tags, someone managed to duplicate a tag with lowercase instead of uppercase.
While the current tag "Branding" returned around 72 results, the newly added tag "branding" caused both tagged_with queries to return 0 results. Any possible validation to not allow an already available tag with just a different case?
The text was updated successfully, but these errors were encountered: