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?
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