mardi 19 juin 2018

specific association two model contain same name

I have two model user & speed . user has many speed

user contain username, email, password, nameofwatch

speed contain nameofwatch, speed, userid

can associate between two model by nameofwatch.

if nameofwatch in user = nameofwatch in speed

appear current_user value of speed

Aucun commentaire:

Enregistrer un commentaire