How to apply the :group_by option in ferret search

Please help its urgent.

vicky wrote:

Please help its urgent.

Object.find_with_ferrey('some keywords ...', {}, {:group=>:column_field, :conditions=>"1=1"})

the 1st empty {} is for ferret options, with can be :page and :per_page

the 2nd {}, can put any find option

This one will be fine with grouping, but you must add 1 line to

vendor/plugins/acts_as_ferret/lib/class_method.rb

def count_records(id_arrays, find_options = {}) ...           opts = find_options.merge :conditions => conditions           opts.delete :limit; opts.delete :offset #----add this line or else it gonna cause error with group option           opts.delete :group #----end of adding line          count += model.count opts ..     end