method
datetime_selector
v3.0.9 -
Show latest stable
- Class:
ActionView::Helpers::InstanceTag
datetime_selector(options, html_options)private
No documentation available.
# File actionpack/lib/action_view/helpers/date_helper.rb, line 926
def datetime_selector(options, html_options)
datetime = value(object) || default_datetime(options)
options = options.dup
options[:field_name] = @method_name
options[:include_position] = true
options[:prefix] ||= @object_name
options[:index] = @auto_index if @auto_index && !options.has_key?(:index)
DateTimeSelector.new(datetime, options, html_options)
end