uhlenbrock / sharethis_fu

Easily and unobtrusively integrate ShareThis in your rails app.

This URL has Read+Write access

README.textile

ShareThis Fu

This plugin should help you easily and unobtrusively integrate ShareThis in your rails app.

Installation

script/plugin install git://github.com/uhlenbrock/sharethis_fu.git

This should create sharethis.yml in your config directory. Add your publisher key as well as any widget customizations.

Usage

There are three parts to the integration:

1. A javascript include tag in the head of your html layout

<%= include_sharethis_if_needed %>

2. Declaration in controller of your choice

uses_sharethis

3. Within the view where the button should appear

<%= sharethis :title => “Title to be shared.”, :url => “http://www.sharethis.com/” %>

TODO

  • Write more tests
  • Allow for further widget customization