search for: similiar_blogs

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

2007 Feb 16
1
find conditions in more_like_this
Hello. I''m trying to use acts_as_ferret to index with set conditions. Ideally I could do something like: acts_as_ferret :fields => [ :title, :body ], :conditions => ["enabled = 1"] But would settle for being able to do: @similiar_blogs = @blog.more_like_this :field_names => [ :title, :body ], :conditions => "enabled=1" What is the best way of accomplishing this with using more_like_this, or even better -- applying these conditions to the model to be indexed globally. Thanks in advance for any advice or suggestio...