What is wrong with validates_presence_of :my_association ?

That will check the value for a field called category, not an
association.