Forum: Ruby on Rails using acts_as_ferret in non Latin languages

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.
9b0ef55fb9650f07b00761c1fbffaca6?d=identicon&s=25 Abolfazl Mahmoodi (mahmoodi)
on 2007-05-13 16:21
(Received via mailing list)
Hi all,

I want to use acts_as_ferret in persian language, i have installed
ferret and acts as ferret successfully and write model and controller
code like the following but by all parameter there is no results.
please review this code and guide me to solve this problem.

require 'acts_as_ferret'
  require 'rubygems'
  require 'ferret'

  include Ferret

    has_many :works
    validates_presence_of :code
    acts_as_ferret({:fields => [:fname, :lname] }, {:analyzer =>
[ابپتثجچحخدذرزصضسشطظکگفقلمنهی ]+/,false)})

Controller :

def search
    @page_title = "Search"
    if params[:commit] == "Search" || params[:q]
      @person = MPhone.find_by_contents(params[:q])
      unless @person.size > 0[:notice] = "No books found matching your criteria"
This topic is locked and can not be replied to.