I have a List model which holds all of the lists used throughout the
app. This model has the following fields: id, list, value, sequence.
To fetch a list of states, you could do something like
List.find_by_list("states").
Now I also have a Record model which holds a reference to a User
model. I also want it to link back to three different lists (state,
country, and user_group). These references are independent of each
other and should be linked by a list ID. Any ideas on how to
construct the Record model and database structure?
Thanks in advance!
- Dave
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---