[Ferret-talk] find_with_ferret :multi not working for me (latest version) (apologies if this was already posted)
Jens Kraemer
jk at jkraemer.net
Mon Apr 14 16:24:25 EDT 2008
Hi!
what you're experiencing is a result of the recent refactorings I did to
the aaf code base. Sorry for the inconvenience this has caused you - I
didn't find the time to document this properly yet.
I moved the multi search functionality from the class level methods
(like find_with_ferret) into the ActsAsFerret namespace. It has always
been a bit inconsistent calling find_with_ferret on one class, passing
in any other classes to search in via the :multi option.
To get multi search back, you should use ActsAsFerret::find like this:
@stuff = ActsAsFerret::find(
"trumpet",
[TeachingObject, LearningObject, Lesson, Course],
{ :page => 1, :per_page => 15 },
{} # find options
)
Cheers,
Jens
--
Jens Krämer
Finkenlust 14, 06449 Aschersleben, Germany
VAT Id DE251962952
http://www.jkraemer.net/ - Blog
http://www.omdb.org/ - The new free film database
More information about the Ferret-talk
mailing list