Has anyone got or seen a "many to many to many" example/ tutorial anywhere ? E.g. a model to handle , teacher , room , period So teacherA is in room 1 at 11-12 oclock or teacherA and B is in room 2 at 12 - 1 oclock I want to know what the best way to model this is ? And how to display things like Room 1 - 11 -12 Teacher A - 12 - 1 Teacher & teacher B ROom 2 etc.. or Teacher A 11-12 Room1 12 -1 room 2 etc.. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Andrew Stewart
2007-Mar-05 09:30 UTC
Re: many-to-many-to-many examples / tutorials / best practice
On 2 Mar 2007, at 16:38, macarthy wrote:> Has anyone got or seen a "many to many to many" example/ tutorial > anywhere ?Have a look at Josh Susser''s Many to Many Dance-Off. It''s not quite what you are after but it might help you out: http://blog.hasmanythrough.com/2006/4/20/many-to-many-dance-off Also see his other articles on this kind of thing: http://blog.hasmanythrough.com/associations Regards, Andy Stewart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---