Forget my last question. With last release of acts_as_ferret you need
to use :

find_with_ferret

rather than find_by_contents (seen on many many tutorial, even on the
acts_as_ferret main site homepage).

Regards

On 1 avr, 10:32, Osaris <[EMAIL PROTECTED]> wrote:
> I've installed Ferret gem and acts_as_ferret plugin.
>
> I've a Contact model with acts_as_ferret and I've added require
> 'acts_as_ferret' in my environnment.rb
>
> If I try to do Contact.find_by_contents('test') in console or in a
> controller I've : "undefined method `find_by_contents' for #<Class:
> 0xb7aa56c4>"
>
> The index seems to be created ok. Acts_as_ferret logs just say :
>
> "[contact] register class Contact with index contact
> [contact] default field list for index contact:
> [:email, :name, :address_id]"
>
> Thank you.
>
> On 1 avr, 06:33, "Adam Wiggins" <[EMAIL PROTECTED]> wrote:
>
> > You should be able to use acts_as_ferret now.  See:
>
> >http://groups.google.com/group/heroku/browse_thread/thread/5280ea15ec...
>
> > Adam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to