mail-MUtyRJnA2dF54TAoqtyWWQ@public.gmane.org
2007-Jan-03 07:52 UTC
datetime_select and preserving NULLs
I have several datetime columns and in my ''new'' and ''edit'' views sometimes I would like to set a specific date time while other times I would like to leave it null. For the life of me I can''t figure out what I should be using in my _forms.rhtml so that datetime_select accepts a NULL value for the datetime instead of a preset value. I''ve tried setting the default value of the column to NULL or ''0000-00-00 00:00:00'' but to no avail. I see there is an open defect on this issue: http://dev.rubyonrails.org/ticket/2999 but was wondering if there was an easy work around that someone could recommend. Thanks, Matt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---