Share on Facebook, Retweet, etc., Buttons in a straight ruby โ€‹โ€‹stone?

Check out these buttons on http://techcrunch.com/2010/04/04/he-even-makes-coldplay-sound-fun/ for sharing URLs on social networks?

I want to do something very similar to the site I am creating. ShareThis offers a widget that does the same, but it is branded and external.

I am looking for a clean Ruby solution. An ideal would be a stone containing a module that could be included in the Rails ApplicationHelper class.

Suggestions appreciated before I reinvent the wheel!

imagining something like:

<%= share_links object_url(@object), [:facebook, :twitter, :reddit] %> 
+7
ruby ruby-on-rails
source share
1 answer

the best i can find is: http://www.addthis.com/

there is rails gem / plugin here: http://github.com/jaap3/addthis

and a tutorial on the amazingly titled joint album unitedelementsofhate.net - http://unitedelementsofhate.net/developers/addthis

from the looks of things, it is configured to work with rails 2.1, but I'm sure it wonโ€™t take too much effort to run it on 2.3.x or 3.0.beta ....

hope this helps pairing

+1
source share

All Articles