search for: comments_list

Displaying 1 result from an estimated 1 matches for "comments_list".

Did you mean: comment_list
2007 Apr 27
1
Return which field/index a result hit was found in
...ts, tags, authors, etc.. I have implemented acts_as_ferret to search the Book model and the associations as follows: class Book < ActiveRecord::Base ... #asociations has_many :details has_many :authors etc... ... # acts as ferret implementation acts_as_ferret :fields => [:title, :tag_list, :comments_list, :details_value_list, :details_title_list, :author_names] def details_value_list return self.details.collect do |detail| detail.value end.join(",") end def details_title_list return self.details.collect do |detail| detail.title end.joi...