<%- html_options[:class] << ' select' %>
<%- html_options[:class] << ' is-danger' if errors[attribute_name].present? %>
<%- if hint_text.present? %>
<%= collection_select(
attribute_name,
collection,
value_method,
text_method,
options,
html_options) %>
<%= hint_text %>
<%- end %> <%- if errors[attribute_name].present? %><%= errors.full_messages_for(attribute_name).to_sentence %>
<%- end %>