Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialPaul Dariye
Courses Plus Student 9,097 PointsGravtastic gem
I would like help implementing a profile picture with gravtastic. The short tutorial on the git repo only got me confused. Please help anyone...thanks
2 Answers
henrikh
3,666 PointsThe docs on https://github.com/chrislloyd/gravtastic are really easy, what do you not understand? It's not possible for us, to help if you don't tell us what you don't understand. Show us your code, what have you tried? Any errors? Did you remember to add it in your environment.rb file? Did you add it in a model (by creating a "class"?)?
Also, why use a plugin for this? Gravatar is so easy to setup from scratch (does it even require more coding lines?)...
How it works is just putting in a URL and hash the email with md5 and lower-casing it..
http://gravatar.com/avatar/HASH_TEXT_GOES_HERE.png or just use <%= image_tag @user.gravatar_url %> as specified on https://github.com/chrislloyd/gravtastic after installing it.
Paul Dariye
Courses Plus Student 9,097 PointsHi Ronnie, that's my bad. I should have included the error message and I didn't include it in my environment.rb file. I decided to use a plugin because as I hear it's best to know more than one way of doing something. The other method I've already used and it works. Thank all the same.
henrikh
3,666 PointsSure, no problem Paul :)