Sha256: a5b0ac7efbfb75cec958efb16db09b2ef697a19af43cc3a497ba20faa216ad52

Contents?: true

Size: 276 Bytes

Versions: 7

Compression:

Stored size: 276 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
tft_rails_dbc-0.1.3 lib/generators/chapter07/begin/templates/app/helpers/users_helper.rb
tft_rails_dbc-0.1.1 lib/generators/chapter07/begin/templates/app/helpers/users_helper.rb
tft_rails_dbc-0.1 lib/generators/chapter07/begin/templates/app/helpers/users_helper.rb
tft_rails-0.6.2 lib/generators/chapter07/begin/templates/app/helpers/users_helper.rb
tft_rails-0.6.1 lib/generators/chapter07/begin/templates/app/helpers/users_helper.rb
tft_rails-0.6.0 lib/generators/chapter07/begin/templates/app/helpers/users_helper.rb
tft_rails-0.5.1 lib/generators/chapter07/begin/templates/app/helpers/users_helper.rb