Forum: Ruby on Rails user display preferences options

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Tam K. (Guest)
on 2009-04-12 10:08
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
Rick (Guest)
on 2009-04-12 23:15
(Received via mailing list)
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
Ram (Guest)
on 2009-04-13 08:04
(Received via mailing list)
restful_authentication plugin.
also has roles for authorization.
http://github.com/technoweenie/restful-authenticat...
http://railsforum.com/viewtopic.php?id=14216
This topic is locked and can not be replied to.