Topic: Error Handling for valid values

I tried everything from validates_associated to defining my own Validate method but nothing seems to work. I just need to validate req_id field against req.id field in another table. Can someone provide a simple solution for this?