Alex wrote:
> Maybe I'm missing some part of the question, but you can just assign a 
> value
> to that element in the array like anything else.
> @rows[120][0] = 120
> 
> 
> 
> Alex

thanks Alex, the index started from 0 so it was actually @rows[119][0] = 
120 but that worked.

I didn't figure on doing the simplest form of a fix for some reason (too 
much reading this week).

I still would like to know what the best way for (find/replace) in an 
array would be going forward.  Perhaps I'm just not searching in the 
right way for the answer.

I originally tried to use a.each to look for a set condition and then 
apply something else.  I'm sure I'll find the answer soon enough through 
trial and error.  Your fix is the simplest and works.

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