European number format - the rational ruby way

Hi There,

Users in some european countries like to write 1.234,56 instead of
1,234.56 What would be the easiest way of accepting this number
format? For output, I’m using a formatting helper, but I haven’t
figured out how to do it for input.

thanks,

js

Javier Solórzano wrote:

Hi There,

Users in some european countries like to write 1.234,56 instead of
1,234.56 What would be the easiest way of accepting this number
format? For output, I’m using a formatting helper, but I haven’t
figured out how to do it for input.

thanks,

js

hey javier

did you found an answer yet? it would be nice if you (or anyone else)
have a solution.

thanks
benni

On 18 Jan 2007, at 17:39, Benjamin M. wrote:

hey javier

did you found an answer yet? it would be nice if you (or anyone
else) have a solution.

The Globalize plugin has international number formatting for its
currency classes, you could have a look at how they’ve done it.

Best regards

Peter De Berdt