Module: Ramaze::Helper::Gravatar
- Defined in:
- lib/cortex_reaver/helper/gravatar.rb
Instance Method Summary collapse
-
#gravatar_img(o) ⇒ Object
Returns an IMG tag for a comment.
Instance Method Details
#gravatar_img(o) ⇒ Object
Returns an IMG tag for a comment.
5 6 7 8 |
# File 'lib/cortex_reaver/helper/gravatar.rb', line 5 def gravatar_img(o) email = o.creator.email rescue o.email || 'anonymous' "<img src=\"http://www.gravatar.com/avatar/#{Digest::MD5.hexdigest(email)}?r=pg&s=60\" alt=\"#{email}\" title=\"#{email}\" />" end |