1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update readme to remove js from example, copies structure from https://github.com/rails/actioncable-examples

This commit is contained in:
Lachlan Sylvester 2015-07-13 20:37:28 +10:00
parent c7dc339b1d
commit e6812303e6

View file

@ -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"