- rails 3.2.8
- simpleform
Im trying to get a default value for each of the day, month, year fields a "Select from list" while keep the below code with styling. Tried nummerous attempts, anyone knows how to do this? Would be very much appreciated thx!
= p.label t(:date_of_birth)
= p.input :dob,
:class => "extra",
:as => :date, :start_year => Date.today.year,
:end_year => Date.today.year - 80,
:month => Date.today.month,
:order => [:day, :month, :year],
:label => false,
:input_html => { :style => "width: 102px" }