app/helpers/users_helper.rb
# returns the gravatar for the user
returns the gravatar for the user
returns the gravatar for the user
def gravatar_for(user)
    gravatar_id = Digest::MD5::hexdigest(user.email)
    gravatar_url = "https://secure.gravatar.com/avatar/#{gravatar_id}"
    image_tag(gravatar_url, alt: user.name, class: 'gravatar')
  end
def gravatar_for ( user ) gravatar_id = Digest :: MD5 :: hexdigest ( user . email ) gravatar_url = "https://secure.gravatar.com/avatar/#{gravatar_id}" image_tag ( gravatar_url , alt : user . name , class : 'gravatar' ) end
returns the gravatar for the user
returns the gravatar for the user
user