I am quite new to Rails and i was wondering if i could get some help
to populate a join table?
I got (for example) a table called films, a table called acteurs and
a join table called acteurs_films. I have specified the HABTM
relationship and I manage to do it through the console by doing:
acteur.films << film
and it works! That’s great but when i go back to coding i don’t
really understand how to do it then!!?
Do i need to put the code in the model and the controller or just the
I know this might sound confusing but, please, if somebody out there
understand, help would be much appreciated!=)