Posted By

markprovan on 04/26/11


Tagged

ruby Gravatar


Versions (?)

Easy Gravatar


 / Published in: Ruby
 

Just give it an email and the size you like the image to be!

  1. def gravatar(email, size)
  2. email_hash = Digest::MD5.hexdigest(email)
  3. "http://www.gravatar.com/avatar/#{email_hash}.png?s=#{size}"
  4. end

Report this snippet  

You need to login to post a comment.