Welcome to Working With Rails

 

Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
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}'

How to make the Gravatar on web Application?

2 Posts
Login to add your message