Before_filter in rails3

I have to call same user_authenticate function for destroy and update,
But when i give like this
*
before_filter :user_authenticate, :only => [:destroy]
before_filter :user_authenticate, :only => [:update]*

This was not working, but when i gave like this
before_filter :user_authenticate, :only => [:destroy,:update]. this
working.

what is the comparison with these 2 method, also i searched for this
only,
and except.but i didn’t get any correct explanation.

Any help?

Thankyou
vishnu

On 12 April 2012 08:22, amvis [email protected] wrote:

what is the comparison with these 2 method, also i searched for this only,
and except.but i didn’t get any correct explanation.

I have not looked at the code (which you could do yourself) but I am
guessing that the second one which says only do it on update (so don’t
do it on destroy) overrides the first one. Is that what you see in
practice?

Colin