# User display preferences options

**URL:** <https://www.ruby-forum.com/t/user-display-preferences-options/165319>\
**Category:** Rails\
**Created:** [April 12, 2009, 8:08am UTC](https://www.ruby-forum.com/t/user-display-preferences-options/165319 "2009-04-12T08:08:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkbeili](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Post date:** [April 12, 2009, 8:08am UTC](https://www.ruby-forum.com/t/user-display-preferences-options/165319/1 "2009-04-12T08:08:58Z")

</div>

Hello,

I’m trying to give group administrator power to show/hide different  
components on group page according to user status (public (no login  
required), group members(logged in) and website members (logged in))

I thought to have preferences tables to store true/false value for every  
section and then do check for every section in the view according to the  
preference and user status.

Is this the best way to do it? is there simpler way/plugin that might  
achieve this better?

Thanks,

Tam

---

<div class="post-metadata">

**Author:** ![tkbeili](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Post date:** [April 12, 2009, 9:15pm UTC](https://www.ruby-forum.com/t/user-display-preferences-options/165319/2 "2009-04-12T21:15:55Z")

</div>

What you’re dealing with is the authenticate / authorize sequence.

Authenticate covers topics such as login / password / session access  
to the site.  
Authorize covers role (or other) based access within the site.

Google either for gems / plugins / discussions

---

<div class="post-metadata">

**Author:** ![tkbeili](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Post date:** [April 13, 2009, 6:04am UTC](https://www.ruby-forum.com/t/user-display-preferences-options/165319/3 "2009-04-13T06:04:13Z")

</div>

restful\_authentication plugin.  
also has roles for authorization.

> **[GitHub - technoweenie/restful-authentication: inactive project](https://github.com/technoweenie/restful-authentication/tree/master)**
>
> master

[http://railsforum.com/viewtopic.php?id=14216](http://railsforum.com/viewtopic.php?id=14216)
