Hello, Using a locale I can format the same number for displaying it: database: 1900.58 en layout: 1,900.58 cat layout: 1.900,58 this is ok .... but how I can do the reverse of it, when the user submits via form a number in it's locale format ? for example if the user enters in cat locale: 1900,58 the resulted number is 1900.00 currently I'm evaluating every field number and replacing commas by dots, but it's a pain to format/adjust everyplace there is a number coming from a form. I thought Rails I18n should handle this in a transparent manner ... or sure I'm missing the point here and maybe there's a function to do it ... thanks! r.
on 2009-03-25 11:24
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.