# Ideas for implementing an UI for set combinations in rails

**URL:** <https://www.ruby-forum.com/t/ideas-for-implementing-an-ui-for-set-combinations-in-rails/162727>\
**Category:** Rails\
**Created:** [March 13, 2009, 7:44am UTC](https://www.ruby-forum.com/t/ideas-for-implementing-an-ui-for-set-combinations-in-rails/162727 "2009-03-13T07:44:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 13, 2009, 7:44am UTC](https://www.ruby-forum.com/t/ideas-for-implementing-an-ui-for-set-combinations-in-rails/162727/1 "2009-03-13T07:44:09Z")

</div>

Hi,

Iam rails newbie. I have to implement a UI design for 3 tables based  
on set theory.  
I thought a lot of a lot of ideas in the past few days but nothing  
seemed to fulfil my necessity

Say i have tables a, b and c  
I should be able to do like

a n b  
a u b  
b - a  
(b - a) n c  
etc…

If any web developers well versed in ui designs out there have some  
suggestions of doing it, i would  
appreciate it 🙂

Regards,  
Vimal Das

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 13, 2009, 10:06am UTC](https://www.ruby-forum.com/t/ideas-for-implementing-an-ui-for-set-combinations-in-rails/162727/2 "2009-03-13T10:06:22Z")

</div>

I don’t fully understand. For example when you ask for the intersection  
‘a  
n b’ do you mean all records that are the same in the two tables or the  
intersection of the fields of the tables (ie fields that exist in in  
both  
tables). If you mean those records that exist in both, do the tables  
have  
all the same fields? Or maybe a combination of both.

2009/3/13 vimal [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
