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