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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Apr 11, 8:08 pm, Tam Kbe <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
restful_authentication plugin. also has roles for authorization. http://github.com/technoweenie/restful-authentication/tree/master http://railsforum.com/viewtopic.php?id=14216 On Apr 13, 12:15 am, Rick <Richard.T.Ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 > > On Apr 11, 8:08 pm, Tam Kbe <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > 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 > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---