creating empty array of items - should be a quick simple one

Scott,

You need to declare the empty array first. @items_missing_images =

But do not use the '@items_missing_images += item ' Use @items_missing_images.push(item) or @items_missing_images << item

The += only works if you are adding an array to an array.

Cheers

I probably should mention the best way to do what you are trying to accomplish would be:

@items_missing_images = @items_all.reject { |item| FileTest.exist? (item.image_name) }