Hi,
I'm very new to rails, so I apologize if my question sounds dumb..
I'm setting up an authentication system for this project. In order to login someone has to feed username/password. Since there are several portions of the project to be password protected I sticked "check_authentication" under controller/application.rb .. I then "before_filter :check_authentication" from the single controllers in need of auth.
But this does not suffice. I need to setup "groups", because some of the controllers should not be accessible to certain groups of users. So I added a "role" column to User and I was thinking to add a "check_permission" under application.rb and to add a before_filter from the proper controllers passing the needed role to it somehow
The problem is that I have no idea on how to pass say "administrator" to a filter.. I tried check_permission(role) but it doesn't like it at all
Any hint?
Thanks