Hi Colin,

The query which i am using on my form is :

= f.select(:word_ids, Word.order(:text).collect {|w| [ w.text, w.id ] }, 
{ label: "Words" }, { multiple: true })

I am able to select a value from dropdown list of values.If i want to 
select the same value again then i can't see that value in the dropdown 
list anymore.

Is there any way that i can see the value in dropdown list irrespective 
of how many times i have selected the value.

Also,please find attached screenshot.

Thanks,
Milley

Colin Law wrote in post #1178473:
> On 2 September 2015 at 12:21, Milley Duke <li...@ruby-forum.com> wrote:
>> Hi,
>>
>> When I am selecting a particular value from DropDown(values are being
>> populated from DB), is it possible to show the same value in dropdown.
>>
>> Currently,when i am selecting any value from the dropdown the selected
>> value is no longer visible in the dropdown list.
>
> Sorry, I have no idea what you mean.  Please show us the section of
> code you are using to display the dropdown and explain in more detail
> what is going wrong.
>
> Colin

Attachments:
http://www.ruby-forum.com/attachment/11078/Screenshot1.png
http://www.ruby-forum.com/attachment/11079/screenshot2.png


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/4528061c72158d8661ae59cf14699267%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to