I have the following scenario within my rails code, where
@manufacturers is an activerecord object with many cars
@manufacturers.each do |manufacturer|
manufacturer.cars.each do |car|
with the above i'm carrying out a number of tests against the car, and
if it fails I want to remove that car from the array, but I don't want
to destroy it, e.g. I don't want to delete it from the database.
Unfortunately I can't select the cars I want from SQL so I've got to
do it this way.
Can anyone help?