see in console is model firing acts as ferret or not...if yes then again
install acts as ferret.
On Tue, Oct 27, 2009 at 4:02 PM, RubyonRails_newbie <
craigwesty79-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
>
> > Hi All,
> >
> > I''m implementing the ferret search engine on my railspace
project.
> >
> > In my User and Info model, I have line that reads:
> >
> > acts_as_ferret :fields => [''username'',
''email'']
> >
> > This initially generates a find_by_contents which is added to the
> > community contoller:
> >
> > @users = User. find_by_contents(query, :limit => :all)
> >
> > THis returned a method error, and after some digging, it turns out
> > that the find_by_contents is not replaced with:
> >
> > @users = User.find_with_ferret(query, :limit => :all)
> >
> > HOWEVER..... With this in place, the book says the search should work.
> > But for some reason, I click search, and nothing is returned...
> >
> > Has anyone else had this issue? and why is nothing been returned in
> > the browser?
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---