Returns a Gravatar image for a given user. Requires valid name and email user attributes. This was created for an educational purpose, and uses the gravatar_for method from the Rails Tutorial by Michael Hartl.
Add this line to your application's Gemfile:
gem 'get_gravatar'
And then execute:
$ bundle
Or install it yourself as:
$ gem install get_gravatar
gravatar_for(user)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request