I have a table with “expires_on” a DATE field.
“Show” and “Destroy” work, but “Edit” errors:
It only happens when hour:minutes:seconds are all zeros. The edit
interface allows all zeros when creating or updating. It seems that this
duck is not one that is recognized.
If hour:minutes:seconds are all zeros rails displays the DATE as a DATE.
If I add a nonzero time then rail displays DATETIME.
Is there a way around this? I just want a DATE not a DATETIME. That is,
I want a DATE type not a DATE with someone. I have a someone. Anyway,
help me out here. I thought that the duck typing worked like “if time is
zero then assume DATE” other wise assume DATETIME.