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/.