So, here’s the situation: a rails app with two idioms, one where users use the format 5,000.40 for writing numbers (standard english), and the other 5.000,40.
Now the question is, how do I deal with this? I’m using the i18n helpers for dealing with output, but I don’t know how to process these numbers in my rails controller.
This is what I did to get this working:
Inside an initializer:
Then in your models: