From: Chris Kalaboukis Date: 2010-02-12T08:39:43+09:00 Subject: Re: Delete Item In Array If Conditions Met Mat Brown wrote: > The #reject! method is an iterator; so is the for loop (effectively). > So you're iterating over the array, and then trying to iterate over > individual members of the array. Here's what you want: > > @array = Capture.find(:all) > @array.reject! { |item| item.text =~ 'something' } Thanks guys that did it! -- Posted via http://www.ruby-forum.com/.