aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 3fbbfac5e4..a14b382776 100644
--- a/README.md
+++ b/README.md
@@ -82,8 +82,15 @@ 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/cable.coffee
+# app/assets/javascripts/application_cable.coffee
+
@App = {}
App.cable = Cable.createConsumer "ws://cable.example.com"
```