search for: find_storage_by_contents

Displaying 3 results from an estimated 3 matches for "find_storage_by_contents".

2007 Apr 13
5
undefined method `ferret_index'' for xxx:Class
Hi I am trying to use ferret; the regular search works; but when I use the find_storage_by_contents to highlight the results, I am getting the above error. Please help thanks -- Posted via http://www.ruby-forum.com/.
2007 Jul 03
4
problems with acts_as_ferret
...earch.rhtml: <% @results.each_with_index do |result, index| %> <%= result[:title] %> Score: <%= result[:score] %><br/><br/> <% end %> And this is the controller: def search @query = params[:q] @total, @results = Post.find_storage_by_contents(@query, :page => (params[:page]||1)) @pages = pages_for(@total) end This is the code from post.rb: def self.find_storage_by_contents(query, options = {}) # Get the index that acts_as_ferret created for us index = self.aaf_index.ferret_index results = [] # search_each i...
2007 Sep 05
1
AAF and DRb with highlighting
How would I change this method in order to get highlighting working with DRb? I''ve given up on searching on Google, I''m getting no results that are actually helpful. def self.find_storage_by_contents(query, options = {}) # Get the index that acts_as_ferret created for us index = self.aaf_index.ferret_index results = [] default_options = {:limit => 10, :page => 1} options = default_options.merge options options[:offset] = options[:limit] * (options[:page].to_i - 1...