how to delete array in rails code example Example: delete item from array in ruby a = [3, 2, 4, 6, 3, 8] a.delete(3)