From: Justin Collins Date: 2006-07-13T03:11:17+09:00 Subject: Re: Class Help, undifined local var or meth --------------050204070303010901090403 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Ryan Edwards-Crewe wrote: > Ryan Edwards-Crewe wrote: > >> 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 >> > > Well that did't work... > > Because you just made aPOlist nil. If you want it to be an array, then: aPOlist = Array.new or aPOlist = [] -Justin --------------050204070303010901090403--