app/views/records/edit_fields/_graduation_year.html.erb
<% date_value = params[:action] == 'new' ? Date.today.strftime("%Y") : f.object.graduation_year %>
<%= f.input :graduation_year, as: :integer, html5: true, placeholder: "Date Format YYYY",
input_html: { class: 'integer-input', min: 1900, max: 2500, value: date_value } %>