aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2015-07-13 14:20:41 +0200
committerRobin Dupret <robin.dupret@gmail.com>2015-07-13 14:20:41 +0200
commited7658f1f3ac9d2a91e61187645cf7531a0a0db4 (patch)
treefadca01f3b98adb9dd8788096ea60c99b83be2cf
parentc7dc339b1dbdb1982d82536d87b6e654e7b7108d (diff)
parente6812303e62dfb1dec18059aa31c07f1ca724c45 (diff)
downloadrails-ed7658f1f3ac9d2a91e61187645cf7531a0a0db4.tar.gz
rails-ed7658f1f3ac9d2a91e61187645cf7531a0a0db4.tar.bz2
rails-ed7658f1f3ac9d2a91e61187645cf7531a0a0db4.zip
Merge pull request #25 from lsylvester/update-readme-to-remove-js
Update README to use coffeescript all the time
-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"