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