Mercurial > hg > soundsoftware-site
comparison vendor/plugins/gravatar/.svn/text-base/README.rdoc.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
1 == Gravatar Plugin | |
2 | |
3 This plugin provides a handful of view helpers for displaying gravatars | |
4 (globally-recognized avatars). | |
5 | |
6 Gravatars allow users to configure an avatar to go with their email address at | |
7 a central location: http://gravatar.com. Gravatar-aware websites (such | |
8 as yours) can then look up and display each user's preferred avatar, without | |
9 having to handle avatar management. The user gets the benefit of not having to | |
10 set up an avatar for each site that they post on. | |
11 | |
12 == Installation | |
13 | |
14 cd ~/myapp | |
15 ruby script/plugin install git://github.com/woods/gravatar-plugin.git | |
16 | |
17 or, if you're using piston[http://piston.rubyforge.org] (worth it!): | |
18 | |
19 cd ~/myapp/vendor/plugins | |
20 piston import git://github.com/woods/gravatar-plugin.git | |
21 | |
22 == Example | |
23 | |
24 If you represent your users with a model that has an +email+ method (typical | |
25 for most rails authentication setups), then you can simply use this method | |
26 in your views: | |
27 | |
28 <%= gravatar_for @user %> | |
29 | |
30 This will be replaced with the full HTML +img+ tag necessary for displaying | |
31 that user's gravatar. | |
32 | |
33 Other helpers are documented under GravatarHelper::PublicMethods. | |
34 | |
35 == Acknowledgments | |
36 | |
37 Thanks to Magnus Bergmark (http://github.com/Mange), who contributed the SSL | |
38 support in this plugin, as well as a few minor fixes. | |
39 | |
40 The following people have also written gravatar-related Ruby libraries: | |
41 * Seth Rasmussen created the gravatar gem[http://gravatar.rubyforge.org] | |
42 * Matt McCray has also created a gravatar | |
43 plugin[http://mattmccray.com/svn/rails/plugins/gravatar_helper] | |
44 | |
45 == Author | |
46 | |
47 Scott A. Woods | |
48 West Arete Computing, Inc. | |
49 http://westarete.com | |
50 scott at westarete dot com | |
51 | |
52 == TODO | |
53 | |
54 * Add specs for ssl support | |
55 * Finish rdoc documentation |