Skip to content

Instantly share code, notes, and snippets.

@joesavak
Created June 3, 2011 18:44
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 joesavak/1006914 to your computer and use it in GitHub Desktop.
Save joesavak/1006914 to your computer and use it in GitHub Desktop.
renderupdateliscript
postcomment = "blah blah must be < 140. Oh and # are probably a good idea to use in here".
liscript = liscript +%&postToLinkedIn("&+postcomment+%&");&
render :update do |page|
if !liscript.blank?
page << liscript
end
#other page updates here
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment