search for: new_from_part

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

2006 Jan 30
0
Adding ActiveRecord objects to the session
...3 - 4 - DB" where 123 is whatever id was created and 4, as far as I can tell, is the id of the last Quote object that was instanciated (many method calls ago). Controller: def add_part part = Part.find(@params[''id''].split(''_'')[1]) if part qp = QuotePart.new_from_part(part, part.suppliers[0].id) session[''quote''] = [] unless session[''quote''] @debug = "#{qp.id} - #{qp.quote_id} - " + (qp.new_record? ? ''new'' : ''DB'') session[''quote''].push(qp) @debug << &quot...