I have generated with form.fields_for and form.grouped_collection_select the following html (this is just sample): <select name="car[name]"> <optgroup label="Swedish Cars"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> </optgroup> <optgroup label="German Cars"> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </optgroup> </select>
when user submit form, in log i have params[:car][:name] = "Swedish Cars" i did not success to reproduce this issue .. except replacing one of "option"'s value with "Swedish Cars" But optgroup in normal situation should not be selected ... maybe IE9 bug ? (i dont know what browser was that) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.