# Multi Select Array - Form - Bootstrap Multiselect

**URL:** <https://www.ruby-forum.com/t/multi-select-array-form-bootstrap-multiselect/231483>\
**Category:** Rails\
**Created:** [August 11, 2014, 12:51am UTC](https://www.ruby-forum.com/t/multi-select-array-form-bootstrap-multiselect/231483 "2014-08-11T00:51:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [August 11, 2014, 12:51am UTC](https://www.ruby-forum.com/t/multi-select-array-form-bootstrap-multiselect/231483/1 "2014-08-11T00:51:32Z")

</div>

Hi,

I have a form where I can select one attribute and it passed on to my  
database. Is there any way to make multiple attributes passed on to my  
database just via a change in the form? Or would I have to create a new  
model and have it pass through that way?

 \<%= f.label :kind %\>  
 \<%= f.select :kind, [['beer','0'],['chocolate','1'],['cocktail','2'],['coffee','3'], ['tea','4'], ['wine','5'], ['juice','6']], class: "form-control" %\> 

I tried adding a multiselect gem:  
[https://www.omniref.com/ruby/gems/bootstrap-multiselect-rails/0.0.2](https://www.omniref.com/ruby/gems/bootstrap-multiselect-rails/0.0.2)

and added the js as indicated here:

> **[GitHub - davidstutz/bootstrap-multiselect: JQuery multiselect plugin based on...](https://github.com/davidstutz/bootstrap-multiselect)**
>
> JQuery multiselect plugin based on Twitter Bootstrap. - GitHub - davidstutz/bootstrap-multiselect: JQuery multiselect plugin based on Twitter Bootstrap.

But for my “f.select” button, not sure what I need to add? If I do the  
option list as in the plugin documentation, how would I make it save to  
:kind in my database?

Thanks,  
Fatima
