I’m having a bit of an issue with my before_filter. I know that the
put in the application.rb controller are global for all the controllers.
my application filter I’d like to allow access to the RSS feed method in
‘member’ controller and skip the login checks that the before_filters
In my application my filters look like this:
class ApplicationController < ActionController::Base
before_filter :check_authentication, :except =>
before_filter :register_member_activity, :except =>
def check_authentication unless session[:member_id] session[:intended_uri] = @request.request_uri redirect_to :controller => 'login', :action => "signin_form" end end
Obviously, now all my controllers and methods have to pass through this
authentication method. For accessing RSS this doesn’t work too well.
Does anyone have any ideas how to allow global access, and no filtering
one method in a different controller. I just want to expose the “RSS”
in the “Member” controller. Putting a before_filter in the Member
and doing an :except => :rss doesn’t do the trick