Wednesday, 28 August 2013

How do I get this multi-select working with f.select?

How do I get this multi-select working with f.select?

My line of code looks like:
<%=f.collection_select :roles, Role.all,:id,:name,{}, {:multiple => true,
:include_blank => true}%>
right now, but its still only letting me select one value
EDIT: After fixing my typo, it now allows me to select multiple values
however when I click on the select box it wont drop down, i have to hold
down shift and use the arrow keys to get any values selected.

No comments:

Post a Comment