Skip to content

Instantly share code, notes, and snippets.

@mikebaldry
Created November 7, 2013 13:21
Show Gist options
  • Save mikebaldry/7354494 to your computer and use it in GitHub Desktop.
Save mikebaldry/7354494 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
window.notifications = <%= flash[:notifications].to_json %>;
</script>
growl.js.psuedo
--------
foreach (notification in window.notifications) {
showNotification(notification);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment