On 9/27/06, Winton <[EMAIL PROTECTED]> wrote: > Sorry for not being clear, r comes from a "for r in @results" iteration. > So r would be an instance of the model. > > Thanks for your help, Jens and Dave. > > - Winton
Well, I'm not sure what is going on but it isn't a problem in acts_as_ferret or Ferret. The highlight method being called is ActionView::Helpers::TextHelper#highlight: def highlight(text, phrase, highlighter = '<strong class="highlight">\1</strong>') if phrase.blank? then return text end text.gsub(/(#{Regexp.escape(phrase)})/i, highlighter) unless text.nil? end As you can see, the phrase is supposed to be a String, not a Hash. That is why the exception is being thrown. Cheers, Dave _______________________________________________ Ferret-talk mailing list Ferret-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/ferret-talk