You may look into Single table inheritance to see if that'll suit your needs. Otherwise you could look into something like mongomapper and mongodb.
On Jan 24, 11:51 pm, Demec <[email protected]> wrote: > I want to create a general model 'Product' that I will be able to > store several attributes in it. > > For example the attributes > > :id > :name > :description > > are pretty stantard. So each product will have this attributes. > > However, I wanted to know if it is possible to create dynamic > attributes. > In the case of a cell phone device I might want to store the IMEI of > the phone, this attribute is useless if the product is a laptop. > > Is there any whey to create dynamic attributes ? -- 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.

