Hmm, I added your method to my model but am still getting the same
errors in my controller action
With this code, I get undefined method `do_search
def search
search = Search.new(params[:query])
@results = search.do_search
end
Which makes no sense at all because in my model I have defined the
method
def self.do_search
return multi_search(query, [Article, Term])
end
This is beyond weird. Even if my do_search method is not well-
written, it should not come up as undefined. Just for laughs i got
rid of the "self." part of that method to see what happens. Whaddya
know?
undefined method `multi_search'
This is even stranger. I know that my AAF is loaded correctly because
I can do single-model searches no problem. Have I inadvertently
stumbled on a bug?
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk