Jump to content

The ultimate community for Ruby on Rails developers.


remove default — - '' - from the drop down selected saved value in collection_select

collection_select redmine plug-in multiple select rails

  • Please log in to reply
No replies to this topic

#1 Shiv



  • Members
  • 1 posts

Posted 29 April 2014 - 07:23 AM

I have a drop down which is getting the input values from a table and then after select and save the values are getting saved in other table. Now the drop down is a multi select. So after saving the values the values are getting saved in the table having --- - '' - before them.

Also on multiselect, instead of giving comma between the values its giving - between the values. Please help me on this.

this is what I've done in the form file-

<div class="pluginESV_formfield">
<%= f.label :features %><br />
<%= collection_select :go_live, :features, ClFeature.all, :cl_feature, :cl_feature,{},{:multiple=>true,:include_blank=>false} %></div>
can some one Please help me on this??


Also tagged with one or more of these keywords: collection_select, redmine plug-in, multiple select rails

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users