Ok this is driving me nuts.
Here’s my issue in it’s most basic form.
I have a table with a column called amount that was set to :decimal,
:precision => 8, :scale => 2
In my controller I try to do something like this.
id = 1
@ticket = Ticket.find(:first, :conditions => [‘id=?’,id])
@ticket.total_amount += params[:amount]
@ticket.direct_amount += params[:amount]
This returns an error saying that it ‘can’t copy BigDecimal’
If I try to user .to_f on my total_amount and direct_amount and
params[:amount] I just end up getting an error about float allocation.
Any ideas? What info can I provide to make this more helpful?
Thanks for any help.