When I validate the association on a
belongs_to association, I try to validate the model rather than the ID, so I would favor
However, I’ve noticed an annoying behavior if I am working with a join model for a
has_many :through relation. If I validate the association instead of the foreign key, I get validation errors even when the setup for the models looks fine. Is there a best practice for dealing with this issue? I don’t like dialing back the validation requirements just to make the code “work”.