# How to escape from the before\_filter for the particular acti

**URL:** <https://www.ruby-forum.com/t/how-to-escape-from-the-before-filter-for-the-particular-acti/141375>\
**Category:** Rails\
**Created:** [June 25, 2008, 6:23am UTC](https://www.ruby-forum.com/t/how-to-escape-from-the-before-filter-for-the-particular-acti/141375 "2008-06-25T06:23:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [June 25, 2008, 6:23am UTC](https://www.ruby-forum.com/t/how-to-escape-from-the-before-filter-for-the-particular-acti/141375/1 "2008-06-25T06:23:17Z")

</div>

Hi,

We use the following code in the ApplicationController.

before\_filter :login\_required

Iam aware, this will be called for every action.

How to escape for the particular action?

Thanks,  
Ayyanar. A

---

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [June 25, 2008, 6:40am UTC](https://www.ruby-forum.com/t/how-to-escape-from-the-before-filter-for-the-particular-acti/141375/2 "2008-06-25T06:40:45Z")

</div>

Use the :except option.

before\_filter :login\_required, :except =\> [“other”]

[http://railsbrain.com](http://railsbrain.com)

---

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [June 25, 2008, 6:52am UTC](https://www.ruby-forum.com/t/how-to-escape-from-the-before-filter-for-the-particular-acti/141375/3 "2008-06-25T06:52:01Z")

</div>

Hi Ryan,

We need to restrict the child controller action. I think we can do this  
using skip\_filter in the child class. Iam exploring on the syntax.

Thanks,  
Ayyanar. A
