Module: Interage::GravatarHelper
- Included in:
- ApplicationHelper
- Defined in:
- lib/interage/gravatar_helper.rb
Constant Summary collapse
- BASE_URL =
'https://www.gravatar.com/avatar'
Instance Method Summary collapse
Instance Method Details
#gravatar_image_tag(email, size = 50, options = {}) ⇒ Object
7 8 9 10 11 |
# File 'lib/interage/gravatar_helper.rb', line 7 def gravatar_image_tag(email, size = 50, = {}) hexdigest = Digest::MD5.hexdigest(email) image_tag("#{BASE_URL}/#{hexdigest}?size=#{size}", ) end |