I override the form column in the helper and add ":include_blank => true":
def maturity_date_form_column(record, input_name)
date_select :record, :maturity_date, :include_blank => true, :name
=> input_name
end
Regards,
Kerry
Doug wrote:
> Hi
>
> I have a date field in my model that allows nil values. The default
> edit view shows a date dropdown for day, month and year, defaulting to
> today's date. Can I tell activescaffold as part of its configuration
> to allow nil values for this date field, either as a "Nil" checkbox
> next to the dropdown, or as blank items in the drop downs?
>
> Doug
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---