search for: price_break

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

Did you mean: price_breaks
2006 Aug 17
6
what did I do to my app? (Superclass mismatch?)
...The first time I load this page, it works fine, the second time I get the superclass mismatch, the third time (and any subsequent times ) i get undefined method. I think this means my class is getting loaded twice? my model looks like this: class Quotation < ActiveRecord::Base has_many :price_breaks has_many :items, :through => :price_breaks belongs_to :contact end #STI class Cost < Quotation end class Price < Quotation end here''s what the third error says: undefined method `contact'' for #<Cost:0xb7936bc8> Cost.contact works in the console... -- Po...
2006 Jul 28
0
i need help migrating an old table
i have this big table that has columns: partnumber, 1piece-price-break, 10K-piece-price-break, 25k, etc... i want to split this into two tables: part_number, id and price_break, price, product_id so that, you know, the price-break columns are not stuck at fixed values; different parts can have differnt numbers of price-breaks, etc is there a ruby way to do this? i have navicat, but i can''t think of a way to keep everything straight with it. thanks, travis...