yes sorry, a topic can belong to many users.  For subtopics we had
went the subtopics_users approach, but now that a new requirement came
in to support a user having either a topic with no subtopic as well as
a subtopic directly (impying topic).

Thanks

On Sat, Jun 27, 2009 at 3:29 PM, Colin Law<clan...@googlemail.com> wrote:
>
> 2009/6/27 AD <straightfl...@gmail.com>:
>>
>> yea sorry if you have a subtopic, you have a topic since a subtopic
>> belongs to a topic.  So if I have TopicA, TopicB, and TopicA has
>> SubTopicD and SubTopicE, a user can have
>>
>> TopicB, SubtopicE.  Since SubTopicE belongs to TopicA they would also
>> have that.   The requirement was really that they didnt have to choose
>> a subtopic if they only wanted to choose a Topic.  But choosing a
>> subtopic intrinsically gets you a topic by association of that
>> subtopic to its parent topic.
>>
>> AD
>
> You have not clarified whether a topic can belong to more one user.
> If so then you need HABTM associations.  Do you need further help?  I
> presume you have worked through the rails guide on associations.
>
> Colin
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to