I use ruby gem simple_form for different forms around my site and wondered if there is a way to combine / collapse date input, which is displayed by default:
= f.input :dob, label: "Date of Birth", as: :date, start_year: Time.now.year - 90, end_year: Time.now.year - 8, order: [:day, :month, :year]
This code creates three input fields: day, month, and year. But I really want to have one field for all three, so the input may look like "05/05/1980". How can this be achieved?
source
share