Displaying 1 result from an estimated 1 matches for "acteurs_film".
Did you mean:
acteurs_films
2006 Aug 15
1
Problem with joining...
Hello,
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=Acteur.new
acteur.name="blabla"
acteur.films << film
acteur.save
and it works! That''s great but when i go back to coding i don''t
really understand how to do i...