In your search.rb
you must add the method find_users
, like so:
def find_users
User.find(:all, :conditions => conditions)
end
Then you must also include all the method conditions
and specify them. Please follow the railscast, it is very explicit.