method
datetime_selector
v6.1.3.1 -
Show latest stable
- Class:
ActionView::Helpers::Tags::DateSelect
datetime_selector(options, html_options)private
No documentation available.
# File actionview/lib/action_view/helpers/tags/date_select.rb, line 30
def datetime_selector(options, html_options)
datetime = options.fetch(:selected) { value || default_datetime(options) }
@auto_index ||= nil
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