$ ruby script/plugin install http://tools.assembla.com/svn/hasham/plugins/gravatar_tag
Here is sample usage in an erb template:
<%= gravatar_tag "user@domain.com", :size => "60x60"%>
The first parameter which is a email that user signed up with on gravatar.com is required. The other parameters are same as rails image_tag view helper.