Displaying 1 result from an estimated 1 matches for "optgorup".
Did you mean:
opt_group
2014 Apr 24
0
How to make optgroup with rails version 3
...ptgroup with active users. i
know the following code is wrong, but would there be any way of doing this
how i have it? right now if you take the raw section and just have
data.collect {|a| [ a.name, a.id ] } instead, it works great for just
showing the names of the users, but i want to add that optgorup. How would
i go about doing that?
= f.select "#{available_filter_option.col_names}", [raw("<optgroup label='Active Users'><option> " + data.collect {|a| [ a.name, a.id ] } + " </option></optgroup>")],
{:include_blan...