Nicky,
For the second part of your question, you may want to check out the
RForum code. It''s a good example of a system with support for guests,
admins and users.
http://rforum.andreas-s.net/trac/
Joe
On Apr 16, 2005, at 9:58 AM, Nickolay Kolev wrote:
> Hi all,
>
> I want to set up a role based login to a system with two basic roles.
> So far we used only simple logins with no separation of roles. I do it
> using the Login Generator and then prepending a :login_required filter
> to the protected actions. Where is that filter method located?
>
> I want to write two new filters based on it so I can protect some
> actions with a :admin_login_required filter and others still with a
> :other_role_login_required filter.
>
> Do you have any tips on setting up the role hierarchy? e.g. the admins
> can do anything, the guys with ther other role only a subset of what
> the admins can do?
>
> Many thanks in advance,
> Nicky
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>