# Trouble skipping before filter in controller

**URL:** <https://www.ruby-forum.com/t/trouble-skipping-before-filter-in-controller/125727>\
**Category:** Rails\
**Created:** [January 11, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/trouble-skipping-before-filter-in-controller/125727 "2008-01-11T15:36:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iain\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/6bbea6/32.png) [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Post date:** [January 11, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/trouble-skipping-before-filter-in-controller/125727/1 "2008-01-11T15:36:30Z")

</div>

Hello,

In my application I want several before filters to apply to every  
request except for login and authenticate. So in my application  
controller I have

before\_filter :setup\_user, :check\_for\_duplicate\_user, :update\_timestamp,  
:kick\_if\_inactive

then in my user controller which contains the login and authenticate  
actions i have

skip\_before\_filter :setup\_user, :only =\> [:login, :authenticate]  
skip\_before\_filter :check\_for\_duplicate\_user, :only =\>  
[:login, :authenticate]  
skip\_before\_filter :update\_timestamp, :only =\> [:login, :authenticate]

however, when I call login or authenticate the before filters are not  
being skipped. Can anyone think of a reason why?

Thanks

Iain
