Oooo, I see, at least I think, is it because I haven't Initialized 
aPOlist

aPOlist = nil
  ...
aPOlist.append(PurchaseOrder.new("#{po_number}", "#{notes}", 
"#{company}", "#{unit_config}", "#{due_date}", "#{quantity.to_i}"))
  ...
end

-- 
Posted via http://www.ruby-forum.com/.