big fat "duh" on my part - thanks for the quick response. :-)
On Thu, Apr 10, 2008 at 3:08 PM, Jens Kraemer <jk at jkraemer.net> wrote:
> Hi!
>
> more_like_this works on a single record, not on the whole results list.
>
>
> Cheers,
> Jens
>
> On Thu, Apr 10, 2008 at 09:36:32AM -0700, Jeff Webb wrote:
> > Does anyone have an example of how more_like_this works in
> acts_as_ferret?
> > I''ve tried the following.....
> >
> > @results = Post.find_by_contents params[:q]
> > @mlt = @results.more_like_this :field_names => [:subject,:body]
> >
> > but get errors saying "more_like_this" is not a method of
@results.
> >
> > --
> >
> > Jeff Webb
> > jeff at boowebb.com
> > http://boowebb.com/
>
> > _______________________________________________
> > Ferret-talk mailing list
> > Ferret-talk at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/ferret-talk
>
> --
> 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
> _______________________________________________
> Ferret-talk mailing list
> Ferret-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ferret-talk
>
--
Jeff Webb
jeff at boowebb.com
http://boowebb.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/ferret-talk/attachments/20080410/91c983cd/attachment.html