ruby - Is there separator for options_for_select in rails? -


i use select tag displaying names in options_for_select , want add separator line in drop down list,under separator line want place link edit names. example.

name1 name2 name3 ----- edit_names 

this view code

= select_tag :page_names, options_for_select(pages.collect{|c| [c.name, c.id]}, params[:search]), {:class => 'auto-width'} 

help me solve this.

this has basics of looking for

http://api.rubyonrails.org/classes/actionview/helpers/formoptionshelper.html#method-i-grouped_options_for_select


Comments