Skip to content

ample/sharethis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShareThis

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

Installation

$ rails plugin install git://github.com/ample/sharethis.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 before the </body> of your html layout*

<%= raw 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

About

Easily and unobtrusively integrate ShareThis in your rails app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages