aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorLachlan Sylvester <lachlan.sylvester@publicisfrontfoot.com.au>2015-07-13 20:37:28 +1000
committerLachlan Sylvester <lachlan.sylvester@publicisfrontfoot.com.au>2015-07-13 20:48:39 +1000
commite6812303e62dfb1dec18059aa31c07f1ca724c45 (patch)
treefadca01f3b98adb9dd8788096ea60c99b83be2cf /README.md
parentc7dc339b1dbdb1982d82536d87b6e654e7b7108d (diff)
downloadrails-e6812303e62dfb1dec18059aa31c07f1ca724c45.tar.gz
rails-e6812303e62dfb1dec18059aa31c07f1ca724c45.tar.bz2
rails-e6812303e62dfb1dec18059aa31c07f1ca724c45.zip
Update readme to remove js from example, copies structure from https://github.com/rails/actioncable-examples
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 1 insertions, 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"