Created
November 9, 2010 21:48
-
-
Save rubypirate/669883 to your computer and use it in GitHub Desktop.
jn helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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