How can I style the visual drop-down of a collection select in Rails? I want to change the background color of individual items in the drop-down, with the color derived from an attribute in the Affiliation object. Here is the current collection_select:
<%= collection_select(:application, :affiliation_id, Affiliation.all.order(:priority).all, :id, :name, :include_blank => true) %>
The Affiliation objects have an attribute called "priority" and I want to assign a color to be displayed based on each Affiliation's priority.