Can’t add class on select form helper in Rails 4
Try this <%= form.select “availability”, options_for_select(1..200), {}, {required: ‘true’, autofocus: ‘true’, class: ‘form-control’} %> Possible options for third argument are :prompt and :include_blank