search for: available_filter_option

Displaying 1 result from an estimated 1 matches for "available_filter_option".

2014 Apr 24
0
How to make optgroup with rails version 3
...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_blank => ' '}, class: 'closed_filters', filter: available_filter...