From e6812303e62dfb1dec18059aa31c07f1ca724c45 Mon Sep 17 00:00:00 2001 From: Lachlan Sylvester Date: Mon, 13 Jul 2015 20:37:28 +1000 Subject: Update readme to remove js from example, copies structure from https://github.com/rails/actioncable-examples --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 45daac5f46..e025846b36 100644 --- a/README.md +++ b/README.md @@ -82,14 +82,9 @@ potentially disconnect them all if the user is deleted or deauthorized). The client-side needs to setup a consumer instance of this connection. That's done like so: -```javascript -//app/assets/javascripts/application.js - -//= require cable -``` - ```coffeescript # app/assets/javascripts/application_cable.coffee +#= require cable @App = {} App.cable = Cable.createConsumer "ws://cable.example.com" -- cgit v1.2.3