class ActionView::Helpers::Tags::DatetimeField
:nodoc:
:nodoc:
def datetime_value(value)
def datetime_value(value) if value.is_a? String DateTime.parse(value) rescue nil else value end end
def format_date(value)
def format_date(value) raise NotImplementedError end
def render
:nodoc:
def render options = @options.stringify_keys options["value"] ||= format_date(value) options["min"] = format_date(datetime_value(options["min"])) options["max"] = format_date(datetime_value(options["max"])) @options = options super end