Module: ActionView::Helpers::DateHelperInstanceTag

Included in:
InstanceTag
Defined in:
actionpack/lib/action_view/helpers/date_helper.rb

Instance Method Summary collapse

Instance Method Details

#to_date_select_tag(options = {}, html_options = {}) ⇒ Object


981
982
983
# File 'actionpack/lib/action_view/helpers/date_helper.rb', line 981

def to_date_select_tag(options = {}, html_options = {})
  datetime_selector(options, html_options).select_date.html_safe
end

#to_datetime_select_tag(options = {}, html_options = {}) ⇒ Object


989
990
991
# File 'actionpack/lib/action_view/helpers/date_helper.rb', line 989

def to_datetime_select_tag(options = {}, html_options = {})
  datetime_selector(options, html_options).select_datetime.html_safe
end

#to_time_select_tag(options = {}, html_options = {}) ⇒ Object


985
986
987
# File 'actionpack/lib/action_view/helpers/date_helper.rb', line 985

def to_time_select_tag(options = {}, html_options = {})
  datetime_selector(options, html_options).select_time.html_safe
end