Should be an easy one and might have over complicated the title somewhat.
I have a variable that contains records:
@record = Records.all
and an array that holds some task_id's:
@array #has for e.g. [1,2,3]
What i want to do check the task_id column of the list of records in @records to see if they contain any of the numbers in the array. If they do then i want those numbers to be put into another array.
i know this is simple but i keep getting confused along the way as im quite new to ruby syntax.