# Related collection selects eliminating prior selections

**URL:** <https://www.ruby-forum.com/t/related-collection-selects-eliminating-prior-selections/90580>\
**Category:** Rails\
**Created:** [March 30, 2007, 1:07am UTC](https://www.ruby-forum.com/t/related-collection-selects-eliminating-prior-selections/90580 "2007-03-30T01:07:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philly\_Cheez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a9a28c/32.png) [@Philly\_Cheez](https://www.ruby-forum.com/u/Philly_Cheez)\
**Post date:** [March 30, 2007, 1:07am UTC](https://www.ruby-forum.com/t/related-collection-selects-eliminating-prior-selections/90580/1 "2007-03-30T01:07:34Z")

</div>

I have seen the plugin for related collection selects and I don’t it can  
help with this one. Here is the example:

In table “painting” I have among others, 3 fields called colorID1,  
colorID2, colorID3…

There is another table called colors with -name- and -id- fields.  
I want 3 drop-down menus

The same color cannot be chosen twice.  
red, green, orange=====\> legal  
blue, magenta, blue ===============\>not legal

All I want is 3 collection selects that  
once something is chosen, eliminates it from the other two lists.

How is this done? And yes i am a noob.
