Hey, i found some n-way threads on the list, but I think they don
t solve my case, or I didnt understand how all of it works. I’m new to
Rails, so be pacient.
I’ll use an example of movie catalog, I’m realing doing a kind of
movie catalog, for laerning rails, and I did this:
Movie, Actor, Director, Writer, Country, Language
The Movie model HABTM Actor, Director and Writer, and belongs_to
Country and Language
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.
Using database, I solve like this.
In this way, I can have the same person working on a movie as a
Director AND as an Actor,
and I just update information in one place, the Person model.
How to put this on Rails ? If theres another way to get in the same
result, I`d appreciate suggetsiont.
PS. Sorry my English, I don’t know this tech english language, correct
me If I’ wrong.