# Wanted: user-interface for many to many/habtm join operations

**URL:** <https://www.ruby-forum.com/t/wanted-user-interface-for-many-to-many-habtm-join-operations/124607>\
**Category:** Rails\
**Created:** [December 31, 2007, 12:03am UTC](https://www.ruby-forum.com/t/wanted-user-interface-for-many-to-many-habtm-join-operations/124607 "2007-12-31T00:03:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaeptnhaddock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d26b3c/32.png) [@kaeptnhaddock](https://www.ruby-forum.com/u/kaeptnhaddock)\
**Post date:** [December 31, 2007, 12:03am UTC](https://www.ruby-forum.com/t/wanted-user-interface-for-many-to-many-habtm-join-operations/124607/1 "2007-12-31T00:03:51Z")

</div>

Dear group  
I’m on my first RoR project, and so far things are going fine. But  
now I’d like to achieve a simple m2m-join, with users and groups (–\>  
a join table groups\_users). I’d like to achieve a view/user interface  
with two lists, one with the users already assigned to a group, one  
with the users not yet assigned, and there should be buttons to move  
users from one list to the other. Pretty much a standard-thing for a  
many-to-many join table, it seems to me.

The basic concept of join tables in RoR is clear to me, but I’m not  
good enough yet to just go ahead and code my own user-interface just  
yet. I’ve been googling for hours now (boy, aren’t there ever many  
rails-blogs out there), and couldn’t find a single tutorial/reference,  
where it is explained, how I could achieve this kind of controller-  
logic/user interface. All I’ve found is a habtm-tutorial with check-  
boxes. Could someone please point me to a good documentation?

my tired eyes would appreciate it very much  
haddock

---

<div class="post-metadata">

**Author:** ![kaeptnhaddock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d26b3c/32.png) [@kaeptnhaddock](https://www.ruby-forum.com/u/kaeptnhaddock)\
**Post date:** [December 31, 2007, 11:12am UTC](https://www.ruby-forum.com/t/wanted-user-interface-for-many-to-many-habtm-join-operations/124607/2 "2007-12-31T11:12:30Z")

</div>

Hello,

Am Montag, 31. Dezember 2007 schrieb kaeptnhaddock:

> good enough yet to just go ahead and code my own user-interface just  
> yet. I’ve been googling for hours now (boy, aren’t there ever many  
> rails-blogs out there), and couldn’t find a single tutorial/reference,  
> where it is explained, how I could achieve this kind of controller-  
> logic/user interface. All I’ve found is a habtm-tutorial with check-  
> boxes. Could someone please point me to a good documentation?
> 
> my tired eyes would appreciate it very much  
> haddock

personally I, suggest taking a look at

> **[\#73 Complex Forms Part 1 - RailsCasts](http://railscasts.com/episodes/73-complex-forms-part-1)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

> **[\#74 Complex Forms Part 2 - RailsCasts](http://railscasts.com/episodes/74-complex-forms-part-2)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

> **[\#75 Complex Forms Part 3 - RailsCasts](http://railscasts.com/episodes/75-complex-forms-part-3)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

although it’s quite complex and a little bit oversized, it might fit  
your  
needs.

Keep smiling  
yanosz

---

<div class="post-metadata">

**Author:** ![kaeptnhaddock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d26b3c/32.png) [@kaeptnhaddock](https://www.ruby-forum.com/u/kaeptnhaddock)\
**Post date:** [December 31, 2007, 12:09pm UTC](https://www.ruby-forum.com/t/wanted-user-interface-for-many-to-many-habtm-join-operations/124607/3 "2007-12-31T12:09:15Z")

</div>

Thanks, yanosz, I’ll take a look
