For some reason I can’t figure this out. But basically I want to compare to models and see if they have any matching emails. Here’s my attempt, but this doesn’t for some reason work at all.
>> CardReferral.all.select{|cf|cf.email == CardSignup.all.collect{|cs|cs.email}}
Where I can somehow return the object..
from the rdoc
array & other_array
Set Intersection—Returns a new array containing elements common to the two arrays, with no duplicates.