module ActionView::Helpers::TextFieldDateHelper

Public Instance Methods

date_text_field(object_name, method, options = {}, html_options = {}) click to toggle source

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

# 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
text_field_date(date = Date.current, options = {}, html_options = {}) click to toggle source

These two handle Date and Time objects.

# File lib/action_view/helpers/text_field_date_helper.rb, line 18
def text_field_date(date = Date.current, options = {}, html_options = {})
  DateTimeSelector.new(date, options, html_options).text_field_date
end
text_field_time(time = Time.current, options = {}, html_options = {}) click to toggle source
# File lib/action_view/helpers/text_field_date_helper.rb, line 22
def text_field_time(time = Time.current, options = {}, html_options = {})
  DateTimeSelector.new(time, options, html_options).text_field_time
end
time_text_field(object_name, method, options = {}, html_options = {}) click to toggle source
# File lib/action_view/helpers/text_field_date_helper.rb, line 13
def time_text_field(object_name, method, options = {}, html_options = {})
  InstanceTag.new(object_name, method, self, options.delete(:object)).to_time_text_field_tag(options, html_options)
end