Displaying 2 results from an estimated 2 matches for "login_invite_url".
2006 May 17
0
class filter: cannot call protected controller methods
...nd cannot be called.
Is this intended?
Is there a solution workaround?
TIA
Alain
BEFORE:
-----------
before_filter :login_required, :except => [:welcome,:login]
def login_required
unless current_user
session[:jumpto] = request.parameters
redirect_to login_invite_url
end
end
AFTER (does not compile)
-----------
class AuthenticationFilter
def self.filter(controller)
login_required =
[''welcome'',''login''].include?(controller.action_name)
if login_required && !controlle...
2006 May 16
2
before_filter and the application controller
Hi there,
I''m having a bit of an issue with my before_filter. I know that the filters
put in the application.rb controller are global for all the controllers. In
my application filter I''d like to allow access to the RSS feed method in a
''member'' controller and skip the login checks that the before_filters are
currently performing.
In my application my filters