# Multi Select Array - Form - Bootstrap Multiselect

**URL:** <https://discuss.rubyonrails.org/t/multi-select-array-form-bootstrap-multiselect/69438>\
**Category:** rubyonrails-talk\
**Created:** [August 10, 2014, 10:51pm UTC](https://discuss.rubyonrails.org/t/multi-select-array-form-bootstrap-multiselect/69438 "2014-08-10T22:51:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [August 10, 2014, 10:51pm UTC](https://discuss.rubyonrails.org/t/multi-select-array-form-bootstrap-multiselect/69438/1 "2014-08-10T22: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?

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

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: [https://github.com/davidstutz/bootstrap-multiselect](https://github.com/davidstutz/bootstrap-multiselect)

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
