Hi Everyone,
I’m using I18n in my rails app and I’m very pleased about it. However,
I’m now having problems posting Date objects to the database. The
problem is that in my text field the date is represented in Dutch. So
for example:
I have a text field: <%= f.calender_date_select: date_attended %>
Where I fill in a date like: 26 oktober 2009
Now the database won’t recognize this, and that’s probably because
he’s posting a foreign language to the database which he doesn’t
understand. I’m guessing I should translate each month somewhere (in
the model??) like this:
Januari => January
Februari => Februari
Maart => March
etc… etc…
Any suggestions??
Many thanks in advance.