Hi Ruby Comuniy! I have implemented i18n and when I set the locale to "de" everthing works fine, I mean date_select shows the german date-format. The problem is, that I want to use a text_field for date-input like: <%= f.text_field :date_test %> But when I open the edit.html.erb the date-output is not the "de-fromat" like 31.12.2008 it is the database format like 2008-12-31. I tried something like <%= l f.text_field :date_test %> but then I get this error message: "Object must be a Date, DateTime or Time object" Do somebody knows a solution? Thanks ahead!!! Regs Hermann
on 2009-05-24 16:54
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.