# Scaffold and Money Error?

**URL:** <https://www.ruby-forum.com/t/scaffold-and-money-error/143041>\
**Category:** Rails\
**Created:** [July 14, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/scaffold-and-money-error/143041 "2008-07-14T19:17:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GabrielG1976](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8491ac/32.png) [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Post date:** [July 14, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/scaffold-and-money-error/143041/1 "2008-07-14T19:17:39Z")

</div>

this is the error Im Getting I generated a scaffold with a decimal  
when it generated it does this error

/staff\_scheduler/app/controllers/log\_entries\_controller.rb:28: formal  
argument cannot be a constant  
def newql(Money.new(0, :dollars))

thanks for any help

Gabriel

---

<div class="post-metadata">

**Author:** ![GabrielG1976](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8491ac/32.png) [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Post date:** [July 15, 2008, 2:24am UTC](https://www.ruby-forum.com/t/scaffold-and-money-error/143041/2 "2008-07-15T02:24:56Z")

</div>

Why does scaffold with decimal add all this Money to my application?
