Title / Description
Code def find_Related_Posts(post) results = Set.new post.tag_list.each do |tag| results << Post.find_tagged_with(tag).select {|p| !(p.eql?(post)) }.collect {|p| link_to(p.title, p)}.join(" ") end results.to_a end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code