[PATCH] to Globalize::Currency

Thanks Roland, got it !
parsing is correct, I get my @cents as it should be…

unfortunatly when saving @product.save
I get an error from Globalize::currency (not linked to your
patch… I also got it wo the patc…°

RuntimeError: can only compare with money or integer

I believe it comes from my validations in Product class…

Hurry up Germany to the final… !!!

Kad K. wrote:

Thanks Roland, got it !
parsing is correct, I get my @cents as it should be…

unfortunatly when saving @product.save
I get an error from Globalize::currency (not linked to your
patch… I also got it wo the patc…°

RuntimeError: can only compare with money or integer

I believe it comes from my validations in Product class…
yes, looks like…
This is from your other mail:
script/…/config/…/app/models/product.rb:29:in `validate’

could you show us your product.rb? or look at it, line 29, somewhere
there might be the problem :slight_smile:
(maybe you are comparing with a float? something like 1.5?)

Hurry up Germany to the final… !!!
we’re trying hard :slight_smile: what’s with france? :slight_smile:

Greetings,
Roland