To use the selection month in series with the rest of the form builder, use date_select without a day or month:
date_select(object_name, method, options = {}, html_options = {})
Just use f.date_select :harvest_start, {order: [:month]} , that is, add order: [:month] or discard_year: true, discard_day: true in the options hash, as specified in docs
In favor of this, you can pass all other parameters, as in the hash setting. Sort of:
<%= f.date_select :birth_date, {prompt: true, order: [:month]}, class: 'form-control' %>
source share