# Action view mutiplication problem and why doesn't method work

**URL:** <https://www.ruby-forum.com/t/action-view-mutiplication-problem-and-why-doesnt-method-work/147378>\
**Category:** Rails\
**Created:** [September 1, 2008, 9:46am UTC](https://www.ruby-forum.com/t/action-view-mutiplication-problem-and-why-doesnt-method-work/147378 "2008-09-01T09:46:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyliong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e9a140/32.png) [@tyliong](https://www.ruby-forum.com/u/tyliong)\
**Post date:** [September 1, 2008, 9:46am UTC](https://www.ruby-forum.com/t/action-view-mutiplication-problem-and-why-doesnt-method-work/147378/1 "2008-09-01T09:46:25Z")

</div>

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
