Trying to find a good way to validate that a relationship exists. For
instance, let’s say I have a Movie and every move HAS TO HAVE a director
(so, movie belongs_to director); I’ve enforced the constraint in my
schema but I’d like to take the abstraction up to the application.
I’ve seen the validates_associated bits but I’m not sure if that’s
adequate. Perhaps validates_presence_of?
Any help would be most welcome!