You can use :only to apply the filter to specific actions in your controller:
before_filter :require_admin_login, :only => [ :delete, :blah, :blech ]
is that what you're after?
You can use :only to apply the filter to specific actions in your controller:
before_filter :require_admin_login, :only => [ :delete, :blah, :blech ]
is that what you're after?
You can redirect or render from your filter (you should also return false, but I don't think that's strictly required anymore if you render or redirect).