Displaying 1 result from an estimated 1 matches for "movies_director".
Did you mean:
movies_directors
2006 Aug 17
1
More on n-way.
...doing a kind of
movie catalog, for laerning rails, and I did this:
Models:
Movie, Actor, Director, Writer, Country, Language
The Movie model HABTM Actor, Director and Writer, and belongs_to
Country and Language
@Movie
id
name
country_id
language_id
year
Join tables:
movies_actors
movies_writers
movies_directors
Everything works! But I have a situation where I can have an *Actor*,
that is ALSO a *Director* or a *Writer too.
If I update some Actor information, I have to update it on the other
tables (Directors,Writers), if it''s there.
Solution ?
Using database, I solve like this.
@person
id
na...