Ruby Error on method: Array can't be coerced into Fixnum : I'm a beginner Ruby coder and working on a simple multiplying method. 

CODE:

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: Ruby -->

    def multiply(*numbers)
    	product = 1
    	numbers.each{|number|
    		product *= number
    	}
    	return product
    end

     puts multiply([2, 3, 4, 5])

<!-- end snippet -->

OUTPUT:

`*': Array can't be coerced into Fixnum (TypeError)
	from calculator.rb:26:in `block in multiply'
	from calculator.rb:24:in `each'
	from calculator.rb:24:in `multiply'
	from calculator.rb:31:in `<main>'



I get this error. It seems the method isn't allowing me to use ".each" on the array.

Also, I want to keep the parameter as *numbers in case it's not an array but two numbers to multiply. I should bring it to your attention that the method works fine when the parameter being passed are two numbers and not an array (i.e. multiply(2, 4)

Thanks in advance :D