Is 'Filter' a reserved word in Rails 2.1.0_RC1?

After checking out Rails v2.1.0_RC1 this is broken:

@filters = Filter.find(:all)

undefined method `find’ for ActionController::Filters::Filter:Class

It works fine in the console but breaks in the view… any ideas?

On 11 Aug 2008, at 16:26, shenry wrote:

After checking out Rails v2.1.0_RC1 this is broken:

@filters = Filter.find(:all)

undefined method `find’ for ActionController::Filters::Filter:Class

It works fine in the console but breaks in the view… any ideas?

Use ::Filter

There is an internatl ActionController class called filter, when ruby
sees Filter inside a controller it’s search algorithm dictates that
the one it finds is the ActionController one. ::Filter means ‘start at
the top level’ and so it will find your class.

Fred

Thanks Fred

SH

On Aug 11, 9:20 am, Frederick C. [email protected]