Displaying 1 result from an estimated 1 matches for "productproperty".
2006 May 05
1
Adding methods to model based on foreign table rows
...uot;name" in this table should actually be a method for
Products
>> Property.column_names
=> ["property_id", "name", "description", "position"]
the third table product_properties holds the mapping data between
products and properties
>> ProductProperty.column_names
=> [ "product_property_id", "product_id", "property_id", "value"]
If I do this:
>> Property.create(:name => ''color'')
I would like to be able to do:
>> Product.create(:name => "Glass", :color =&...