Discussion Forums
Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
- Topic List
- Most Recent Posts
- Sign In for more options
Gravatar
2 Posts
Gravatar
You just have to build a link with user email address converted to a MD5 hash.
So:
clean_email = email.strip.downcase md5 = Digest::MD5.hexdigest(clean_email)
then create an image tag using this md5, URL would be something like:
img src='http://www.gravatar.com/avatar/#{md5}'
2 Posts
