Tag: ruby

  • Find “similar things” in Ruby

    For several Ruby on Rails projects I had to come up with “similar” results. These are often results (video’s, products,places, hobbies, etc) with the greatest number of tags. Say, you are tagging car pictures on a website, and have the following: image1.jpg -> [“honda”,”s2000″,”convertible”,”black”] image2.jpg -> [“honda”,”civic”,”blue”] image3.jpg -> [“lexus”,”is300″,”blue”] image4.jpg -> [“s2000″,”honda”,”convertible”,”silver”] image5.jpg -> […]