action view mutiplication problem and why doesn't method work

I am trying to multiply something in view but what i get is the first parameter without the 2nd parameter being multiplied.

<%= product.price*product.quantity %> only gives product.price

Secondly I have put this method into the