search for: price_name

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

Did you mean: drive_name
2006 Jul 15
0
Validate using boolean values
...ssure must be marked ''true'' as the standard unit_price for that meassure. There will be many other unit_prices for a given meassure, those must be marked ''false'' table sizes meassure, :string (ie.small, medium, big) Model Size has_many :prices table prices price_name :string unit_price :integer standard :boolean size_id :integer Model Price belongs_to :size I have tried both of this validation options in the Price model, first one, then the other and none works for my stated needs. validates_uniqueness_of :standard, :scope => :size_id,...