Hi, --- On Thu, Jul 15, 2010 at 9:30 PM, Deepan Chakravarthy <[email protected]> wrote: | Each group has a groupid, each user has a uid, each group has group | specific data like group_question_id etc. \--
Does a group have many questions? --- | Each user can answer the group question with | group_answer_uid. The number of group_answer_uid (s) for user is equal | to number of groupid is he is part of. \-- Can you rephrase the above? Do you mean that if a user P belongs to groups A, B, then P can answer one question each in groups A and B? --- | 1)list all groups the user is part of | 2)list all users in a groupid \-- A :user has_many :groups, and :group has_many users. You can create a join table for them. SK -- Shakthi Kannan http://www.shakthimaan.com _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
