I am in a broken spot. I was able to get the array from into @set1 and now need to compare @set1 with @set2 and see how many matches there are. I can get the @array1 to work correctly if I have static numbers in an array in @array2 but not when I make it dynamic.
I need a way to compare these two arrays and am at a loss now!
def show
@set1 = Set1.find(params[:id])
@set2 = Set2.where(:date => @set1.date)
@array1 = [Set1.find(params[:id]).let1, Set1.find(params[:id]).let2]
@array2 = [Winnings.where(:date => @set1.date).let1, Winnings.where(:date => @set1.date).let2]
@intersection = @array1 & @array2
end