views:

18

answers:

1

Hi there,

I have a rake task that I created to populate my database with fake data. One of my models has a before_validation callback method which uses the blank? method. When I run my rake task, the task is aborted with the following message:

rake aborted!
undefined method `blank' for #<BigDecimal:101848c10,'0.35E2',9(18)>
A: 

Could be a typo in your code? blank instead of blank?

zetetic
HAHA! Good grief. Thanks for spotting my idiotism.
John
I've been there :)
zetetic