# How to add combobox selections to listbox

**URL:** <https://www.ruby-forum.com/t/how-to-add-combobox-selections-to-listbox/104485>\
**Category:** Rails\
**Created:** [May 18, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/how-to-add-combobox-selections-to-listbox/104485 "2007-05-18T16:45:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jodogger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aca169/32.png) [@jodogger](https://www.ruby-forum.com/u/jodogger)\
**Post date:** [May 18, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/how-to-add-combobox-selections-to-listbox/104485/1 "2007-05-18T16:45:09Z")

</div>

I need a page where i have a listbox and a combobox filled with choices.  
There will be a link called “Add” that will add the selection in the  
combobox to the listbox. Then when the page is submitted, the controller  
collects the items in the listbox.

I have tried fiddling with collect\_select and select, but did not get  
far.

Any help is appreciated!
