search for: user_subtopics

Displaying 1 result from an estimated 1 matches for "user_subtopics".

2009 Jun 27
6
User has many topics or subtopics
...ers in the system and i have topics. Topics also have_many subtopics. What is the cleanest way to setup the AR relationships if a user can either have_many topics or subtopics ? Its basically a dual select box dropdown, where the second dropdown is optional. Is the best to have user_topics, and user_subtopics tables and manage that way ? or combine into one table with STI and a type ? Thanks AD