I can't seem to get the class on this select to work. The grouped collection works...but not the class:
= f.select :topic_id, grouped_options_for_select([['News', @topics.news.order(title: :asc).collect {|v| [ v.title, v.id ] }],
['Opinion', @topics.opinion.order(title: :asc).collect {|v| [ v.title, v.id ] }]]), html: {include_blank: false , id: 'page_topic', class: 'form-control'}