search for: product_property_id

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

2006 May 05
1
Adding methods to model based on foreign table rows
...y 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 => "transparent") and >> Pro...