It's been couple of days messing around with Internet looking for a good
Authentication including Autorization system/plugin for Ruby On Rails.
I've found lots of sources related to that. However, most of them are
old,
not frequently updated, not even well documented.
Please, any suggestions/solution considering Rails 2.1?
Thanks in advance.
a2f
I've been using Authlogic, and love it. It's fairly new, so doesn't have
the recognition or contributions that restful-authentication does.
However, I find that Authlogic's design philosophies are more in tune
with me than, say, restful-authentication's.
-Nick
I normally use a bit on the user, to use a more rolebased approach.
bool (admin)
So in your controller you can just use user.admin? to verify if they
are allowed access to the function.