I'm new to Ruby on Rails. This question seems to be answered in other programming languages but not RoR.
I have an array with 3 items in it.
array1 = [1, 2, 3]
I then have items in another array which i want to check and see how many times array1 appear in array2:
array2 = [1, 2, 3, 4, 5, 6...