An alternative to useing datetime_select in Rails
-
16-09-2020 - |
Вопрос
I'm not such a fan of using datetime_select. I think it renders ugly and isn't easy to deal with on post back.
How do most people deal with it? Wouldn't it be easier to use a plain textbox and use javascript to validate the input as a date? I will be persisting it as a DateTime value.
Решение
I used a text box with a jquery datepicker and all was well in the universe.
Не связан с StackOverflow