I have a Tag model that
has validates_uniqueness_of :name, :case_sensitive => false
and then I have a before_filter
that creates these tags for a post
Tag.find_or_create_by_name(name)
When I create a post and then assign the tag “Toy” it creates it successfully, I then do a new post and add the tag “toy” and get this Validation failed: Name has already been taken. How should I make it so that “Toy” and “toy” are still the same tag?
Store all tags in downcase and find tags in downcase
To find it anyway: