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?
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs