Add a Class and style to a dropdownlist rails <p>I have this code </p> <pre><code> &lt;%= f.select "banker_assignment[banker_assignment_status_id]", options_from_collection_for_select(@banker_assignment_statuses, :id, :assignment_status, @banker_assignment.banker_assignment_status.id), data: { selected: @banker_assignment.banker_assignment_status.id }, { :class =&gt; 'form-control single-select' }, { :style =&gt; 'float: right' } %&gt; </code></pre> <p>I want to add the following class and style to the dropdownlist but i always get an error </p> <pre><code>syntax error, unexpected ',', expecting =&gt; ...'form-control single-select' }, { :style =&gt; 'float: right' }... ... ^ </code></pre> <p>How do i get rid of this error?</p> <p>Thanks </p>