Module: UsersHelper

Defined in:
lib/generators/chapter07/begin/templates/app/helpers/users_helper.rb

Instance Method Summary collapse

Instance Method Details

#gravatar_for(user, options = { :size => 50 }) ⇒ Object



2
3
4
5
6
# File 'lib/generators/chapter07/begin/templates/app/helpers/users_helper.rb', line 2

def gravatar_for(user, options = { :size => 50 })
  gravatar_image_tag(user.email.downcase, :alt => user.name,
                                          :class => 'gravatar',
                                          :gravatar => options)
end