public
Created

  • Download Gist
gistfile1.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13
<% content_for :javascript do -%>
<script type="text/javascript">
console.log('loaded')
$(function() {
var pusher = new Pusher('12668b306e1510d5f86d'); // Replace with your app key
var taskChannel = pusher.subscribe('deal-channel-<%= @deal.id %>');
taskChannel.bind('deal-events', function(data) {
eval(data)
console.log(task)
});
});
</script>
<% end -%>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.