Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple plugin to share pages with most popular social sites.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 assets
Octocat-spinner-32 lib
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
Octocat-spinner-32 install.rb
Octocat-spinner-32 uninstall.rb
README
ShareThis
=========

Simple plugin to share pages with most popular social sites.

At the moment, the following APIs are supported:
  - Facebook
  - Digg
  - MySpace
  - StumbleUpon
  - del.icio.us

After install the plugin run the following rake task to setup assets used by ShareThis:

  rake share_this:setup

And remember to include ShareThis stylesheet in your views using share_this method. 

Example
=======

The following will render in the view the links to share the current page with the defaults settings of ShareThis.

<%= share_this %>

self-explanatory example:
<%= share_this(:include => [:facebook, :digg], :discard_image => true,
               :url => article_path(article),
               :title => article.title) %>


Discarding the images is also possible:
<%= share_this(:discard_image => true) %>

TODO
====
- Improve documentation
- Remove document.title and javascript when getting the page title with Rails becomes possible.
- Add more APIs.

Feedback? Comments? Bugs? Drop me a line to miloops (at) gmail (dot) com 

Copyright (c) 2008 Emilio Tagua, released under the MIT license
Something went wrong with that request. Please try again.