I need to modify the validates_uniqueness_of function so that it will
check that the string is unique but only in its own category.
For example right now I have
so let’s say I have the :title “Title 1” already in the database with
the :category of “1”
then if i wanted to enter the :title “Title 1” in the database again BUT
with a :category of “2” I need it to go through.
In other words it should only create an error if I try to enter :title
“Title 1” AND :category “1”
Thanks in advance for any suggestions.