Forum: Ruby on Rails ferret not working after upgrade

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Petan C. (Guest)
on 2008-12-13 23:35
After a recent upgrade to a newer ferret version and acts_as_ferret
plugin, searching is not working any more.

I have changed find_by_contents to find_with_ferret, but it still doesnt
work. :(

acts_as_ferret({:fields => ['username', 'lastname', 'town'})

search form.rhtml
<% form_tag({ :action => "search" }, :method => "get") do %>
    <%= text_field_tag "q", params[:q] %>
    <%= submit_tag "Search" %>
<% end %>

def search
    if params[:q]
  @users = User.find_with_ferret(params[:q])

Any help would be most welcome.
Thank you.
This topic is locked and can not be replied to.