I have two tables which are associated together. Which mean 

**A ---(has\_many)---> B** 

so it gives params like this 

```
A =>{xx => "sample",
     yy => "sample",
     ...,
     ...,
     B => {check => "yes",
           pp => "b-sample",
           ....
           ....
          }
     }

```

so in this i need to check if B's check is == "yes" mean it should not save the record to table B. 

How do i do this?