I am working on a Rails 2.3.9 application . I need to pass a class to the options. The way i am doing is
<%= select(:resporg, "hresporg_#{row_id}",options_for_select(["Item11",["Item 2", {:class => 'has-versions'}]]), {}, {:multiple => true})%>
Output
<select id="resporg_hresporg_1" name="resporg[hresporg_1][]" multiple="multiple">
<option value="Item11">Item11</option>
<option value="classhas-versions">Item 2</option>
</select>
If you check the above output the class is coming as value. Any idea on what is going wrong?