From: John William Date: 2010-03-11T10:58:18+09:00 Subject: Re: iterate through an @Array Rob Kaufman wrote: > Hey John, > You just need to move the table start and end outside of the each > statement. Everything inside the each block gets done for each item > in the array: > > # Do once > puts "" > > @sample_array.each do |t| > # Do for every item in the array (make one row per item) > puts"" > end > > # Do once > puts �
#{t.name}#{t.address}#{t.city}#{t.state}
� Thank you all for your help. It makes sense now and works perfect! John -- Posted via http://www.ruby-forum.com/.