# Strange before\_filter error. is this a bug i have found?

**URL:** <https://www.ruby-forum.com/t/strange-before-filter-error-is-this-a-bug-i-have-found/101199>\
**Category:** Rails\
**Created:** [August 3, 2006, 3:11pm UTC](https://www.ruby-forum.com/t/strange-before-filter-error-is-this-a-bug-i-have-found/101199 "2006-08-03T15:11:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://www.ruby-forum.com/u/chris)\
**Post date:** [August 3, 2006, 3:11pm UTC](https://www.ruby-forum.com/t/strange-before-filter-error-is-this-a-bug-i-have-found/101199/1 "2006-08-03T15:11:51Z")

</div>

…  
before\_filter :find\_regression\_test

def find\_regression\_test  
@regression\_test=RegressionTest.find(8)  
end  
…

The above seems like perfectly normal before\_filter syntax, but it gives  
this error. Aldo is no application trace, just a framework trace:  
Any idea what is wrong?

NoMethodError in Regression testsController#modify\_regression\_test

private method `equal?’ called for false:FalseClass

RAILS\_ROOT: script/…/config/…  
Application Trace | Framework Trace | Full Trace

/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active\_record/base.rb:1567:in  
`==' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:411:in`call\_filters’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action\_controller/filters.rb:394:in  
`call_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:383:in`before\_action’  
…

Thanks  
Chris

---

<div class="post-metadata">

**Author:** ![chris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://www.ruby-forum.com/u/chris)\
**Post date:** [August 4, 2006, 3:48am UTC](https://www.ruby-forum.com/t/strange-before-filter-error-is-this-a-bug-i-have-found/101199/2 "2006-08-04T03:48:39Z")

</div>

I don’t know what is the name of your controller but if its a Rails  
reserved  
name you may have a conflict.

try redefine find\_regression\_test method (and or controller) with some  
other  
name

Most likely this should fix the problem

-daya
