Suppose you have 2 arrays, colors and sizes:
colors = ["Black", "Red"]
sizes = ["L", "M", "S", "XL", "XXL"]
To print array with all products (with slash between):
["Black-L","Black-M","Black-S","Black-XL","Black-XXL","Red-L","Red-M","Red-S","Red-XL","Red-XXL"]
Type:
p colors.product(sizes).map { |x| x.join("-") }