# Design a GUI widget for "assign roles to users"

**URL:** <https://www.ruby-forum.com/t/design-a-gui-widget-for-assign-roles-to-users/131339>\
**Category:** Rails\
**Created:** [March 8, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/design-a-gui-widget-for-assign-roles-to-users/131339 "2008-03-08T12:07:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![myst\_tt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e47774/32.png) [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Post date:** [March 8, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/design-a-gui-widget-for-assign-roles-to-users/131339/1 "2008-03-08T12:07:37Z")

</div>

Hi,  
In the admin panel of my little app, the admin can open a user’s  
detail info page and modify(kick or add) the user’s roles (all roles  
contain “anonymous”, “normal”, “moderator” and “admin”). However, I  
have no idea what GUI widget I should use here. The perfect one should  
be like the follow, admin could freely kick the roles between the two  
columns and finally save it. But how to make this kind of widget in  
rails? Or any other way could also fulfil my requirement?

User’s existing roles \<==\> Other roles  
========== =============  
= normal = = moderator=  
= admin =  
= anonymous=

========= ==============

Thanks!  
MyST

---

<div class="post-metadata">

**Author:** ![myst\_tt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e47774/32.png) [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Post date:** [March 8, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/design-a-gui-widget-for-assign-roles-to-users/131339/2 "2008-03-08T21:36:35Z")

</div>

myst\_tt wrote:

> User’s existing roles \<==\> Other roles  
> ========== =============  
> = normal = = moderator=  
> = admin =  
> = anonymous=
> 
> ========= ==============

Rails has absolutely nothing to do with this requirement, This will  
eventually be a simple form post where you retrieve the roles for the  
selected user from the db and display them in an edit form with html  
check boxes( and or html selects) that the admin user can check on and  
off. No matter what “framework” you use, they will all pretty much look  
the same on the view side, I think you would benefit in taking a step  
back from rails and look at html gui design.

hth

ilan
