search for: protect_all

Displaying 1 result from an estimated 1 matches for "protect_all".

2006 May 04
0
Using ActiveRBAC 0.3.1 to restrict entire site?
...l of my controllers so users have to login to see anything. I''m trying to put a before_filter in my application controller, but I don''t know how to do the except correctly. I''ve been trying this: class ApplicationController < ActionController::Base before_filter :protect_all, :except => ''login'' protected def protect_all if !session[:rbac_user].nil? return true else redirect_to "/active_rbac/login" return false end end end Is there a way to use :except for th...