Why doesn’t this work:
class AdminController < ApplicationController
def list_pending
@people = Person.get_unapproved
end
class Person < ActiveRecord::Base
def get_unapproved
self.find(:all, :conditions => ‘is_approved = FALSE’, :order =>
‘created_at’)
end
I get an unknown method error! Thanks in advance.