# Urgent help with before filter

**URL:** <https://www.ruby-forum.com/t/urgent-help-with-before-filter/104981>\
**Category:** Rails\
**Created:** [May 24, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/urgent-help-with-before-filter/104981 "2007-05-24T16:30:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a183cd/32.png) [@lix](https://www.ruby-forum.com/u/lix)\
**Post date:** [May 24, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/urgent-help-with-before-filter/104981/1 "2007-05-24T16:30:50Z")

</div>

hi, i’ve a little problem…i’ve a before filter in the application.rb  
which exclude 4 actions, now i’ve to add another, called :index, but  
this would work for all indexes, how can i set to exclude only that  
index (setting the controller maybe)? i’ve tryed with :except =\>  
[{:controller =\> ‘/abc’, :action =\> :abc}], but this doesn’t work ☹

---

<div class="post-metadata">

**Author:** ![lix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a183cd/32.png) [@lix](https://www.ruby-forum.com/u/lix)\
**Post date:** [May 24, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/urgent-help-with-before-filter/104981/2 "2007-05-24T17:07:22Z")

</div>

Use skip\_before\_filter in the specific controller and not exclusion  
in the application one.

Val

[http://revolutiononrails.blogspot.com/](http://revolutiononrails.blogspot.com/)

---

<div class="post-metadata">

**Author:** ![lix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a183cd/32.png) [@lix](https://www.ruby-forum.com/u/lix)\
**Post date:** [May 24, 2007, 6:49pm UTC](https://www.ruby-forum.com/t/urgent-help-with-before-filter/104981/3 "2007-05-24T18:49:49Z")

</div>

Val wrote:

> Use skip\_before\_filter in the specific controller and not exclusion  
> in the application one.

thanks 🙂
