Craig White wrote: > On Tue, 2010-08-17 at 14:00 -0700, Madison Kelly wrote: >> I'm using an array to store a list of catagories that a product will >> belong to. Since the number of catagories a product can belong to >> isn't set (could be 1 or could be 10), I was going to use an array. >> Does that sound like an appropriate use? > ---- > sounds like a classic 'many to many' relationship and you should have a > categories table and a product table and a categories_products join > table. >
Exactly. > Craig Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

