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">
    <%= f.label :kind %><br>
       <select class="multiselect">
          <%= f.select :kind,
[['beer','0'],['chocolate','1'],['cocktail','2'],['coffee','3'],
['tea','4'], ['wine','5'],
['juice','6']], class: "form-control" %>
      </select>
</div>
I tried adding a multiselect gem:
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
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
-- 
Posted via http://www.ruby-forum.com/.
-- 
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/b3a4ebcb10dc7ffc773c2d3805bf9d54%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.