module Interage::GravatarHelper

Constants

BASE_URL

Public Instance Methods

gravatar_image_tag(email, size = 50, options = {}) click to toggle source
# File lib/interage/gravatar_helper.rb, line 7
def gravatar_image_tag(email, size = 50, options = {})
  hexdigest = Digest::MD5.hexdigest(email)

  image_tag("#{BASE_URL}/#{hexdigest}?size=#{size}", options)
end