Ferret not working after upgrade

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. :frowning:

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs