Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require 'md5'
module CommentsHelper
def gravatar_url_for(email = null, size = 80)
hash = MD5::md5(email.downcase)
image_src = "http://www.gravatar.com/avatar/#{hash}?s=#{size}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.