checkbox - multiple check box error in rails with the help of hash -


in @eyecolor contain hash

{"brown"=>"brown", "black"=>"black", "blue"=>"blue", "green"=>"green"}. 

now want show multiple check box in rails, , have implement code this

<%= check_boxes_tag "eyecolor[]", options_for_select(@eyecolor, params['eyecolor']),{:multiple => true,:size=>5} %>   

and want check black

but didn't show me multiple checkbox, display me 1 check box.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -