Skip to content

Instantly share code, notes, and snippets.

@rubypirate
Created November 9, 2010 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubypirate/669883 to your computer and use it in GitHub Desktop.
Save rubypirate/669883 to your computer and use it in GitHub Desktop.
jn helper
def share
link_to_function "Details" do |page|
return %(
<script type="text/javascript">
RPXNOW.loadAndRun(['Social'], function () {
var activity = new RPXNOW.Social.Activity(
"Share your comment",
"commented on 'Like My New Perfume?' on cuteoverload.com",
"http://cuteoverload.com/2009/10/26/like-my-new-perfume/");
RPXNOW.Social.publishActivity(activity);
});
</script>
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment