class Formtastic::Inputs::DateSelectInput
Outputs a series of select boxes for the fragments that make up a date (year, month, day).
@see Formtastic::Inputs::Base::Timeish
Timeish module for documentation of date, time and datetime input options.
Public Instance Methods
fragment_value(fragment)
click to toggle source
# File lib/formtastic/inputs/date_select_input.rb, line 25 def fragment_value(fragment) if fragment == :year Time.now.year else '1' end end
time_fragments()
click to toggle source
We don't want hour and minute fragments on a date input
# File lib/formtastic/inputs/date_select_input.rb, line 11 def time_fragments [] end