/ Published in: Ruby
Just give it an email and the size you like the image to be!
Expand |
Embed | Plain Text
def gravatar(email, size) email_hash = Digest::MD5.hexdigest(email) "http://www.gravatar.com/avatar/#{email_hash}.png?s=#{size}" end
You need to login to post a comment.
