Method: ActionView::Helpers::TextFieldDateHelper#date_text_field

Defined in:
lib/action_view/helpers/text_field_date_helper.rb

#date_text_field(object_name, method, options = {}, html_options = {}) ⇒ Object

These two handle an object with a method that returns a Date or Time object.



9
10
11
# File 'lib/action_view/helpers/text_field_date_helper.rb', line 9

def date_text_field(object_name, method, options = {}, html_options = {})
  InstanceTag.new(object_name, method, self, options.delete(:object)).to_date_text_field_tag(options, html_options)
end