Can i please help

Well I changed the method, so that it can take the three parameters.

And my question would be How can I modify the ruby block code so that I
can do the perform the matching.

  def self.search_by_keyword(businesses, searched_keyword_as_array,
flag_exact_or_partial_match)
      businesses.select do |b|
        b.my_keywords.include?(searched_keyword)
     end
   end

···

--
Posted via http://www.ruby-forum.com/.