date and time form rails code example Example: simple form for rails dates f.input :start_date, as: :date, html5: true