Displaying 1 result from an estimated 1 matches for "intended_uri".
2006 May 16
2
before_filter and the application controller
...lass ApplicationController < ActionController::Base
before_filter :check_authentication, :except => [:check_authentication]
before_filter :register_member_activity, :except =>
[:check_authentication]
def check_authentication
unless session[:member_id]
session[:intended_uri] = @request.request_uri
redirect_to :controller => ''login'', :action => "signin_form"
end
end
etc..............
Obviously, now all my controllers and methods have to pass through this
authentication method. For accessing RSS this doesn'...