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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs