Why does scaffold with decimal add all this Money to my application?
On Jul 14, 10:16 am, GabrielG1976
<GabrielG1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---