search for: retail_price

Displaying 2 results from an estimated 2 matches for "retail_price".

2006 Sep 28
15
Inserting rows into linking table
Hi, I have two objects: Contacts Lists I want to be able to add multiple contacts to multiple lists. I''ve created a linking table and a form that allows me to select the contacts using checkboxes, but I''m having some problems with the controller and model. I receive the following error message when I submit the form: Mysql::Error: Cannot add or update a child row: a
2006 May 19
2
Problems with belongs_to table joins
...not null, image_url varchar(200) not null, products_quantity int(11) not null, products_status enum(''0'',''1'') not null, available_from date, cost_price decimal(10,2) not null, retail_price decimal(10,2) not null, primary key(id) ); class Product < ActiveRecord::Base validates_presence_of :title validates_numericality_of :retail_price, :cost_price has_and_belongs_to_many :artists has_and_belongs_to_many :labels has_and_belongs_to_many :genres belongs_to...