- 19 12月, 2015 1 次提交
-
-
由 eileencodes 提交于
🎉 🍻
-
- 18 12月, 2015 6 次提交
-
-
由 yuuji.yaginuma 提交于
``` # before App.appearance = App.cable.subscriptions.create "AppearanceChannel", connected: -> # Called when the subscription is ready for use on the server disconnected: -> # Called when the subscription has been terminated by the server received: (data) -> # Called when there's incoming data on the websocket for this channel appear: -> @perform 'appear' away: -> @perform 'away' ``` ``` # after App.appearance = App.cable.subscriptions.create "AppearanceChannel", connected: -> # Called when the subscription is ready for use on the server disconnected: -> # Called when the subscription has been terminated by the server received: (data) -> # Called when there's incoming data on the websocket for this channel appear: -> @perform 'appear' away: -> @perform 'away' ```
-
由 Akshay Vishnoi 提交于
-
由 Akshay Vishnoi 提交于
-
由 David Heinemeier Hansson 提交于
-
由 eileencodes 提交于
Logging Action Cable to STDOUT caused the development log to see double messages like this: ``` Started GET "/" for ::1 at 2015-12-17 15:21:34 -0500 Started GET "/" for ::1 at 2015-12-17 15:21:34 -0500 Processing by Rails::WelcomeController#index as HTML Processing by Rails::WelcomeController#index as HTML Rendered /welcome/index.html.erb (0.0ms) Rendered /welcome/index.html.erb (0.0ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.0ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.0ms) ``` Now that Action Cable is part of Rails it doesn't need it's own logger and will log to STDOUT via the local dev server here: https://github.com/rails/rails/blob/master/railties/lib/rails/commands/server.rb
-
由 Gaurav Sharma 提交于
-
- 17 12月, 2015 13 次提交
-
-
由 Arun Agrawal 提交于
Warnings coming from code and test are removed
-
由 Paul Montero 提交于
Fix typo
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
Assume that the cable server is running in-process by default, offer option to change that in config/environments/production.rb
-
由 David Heinemeier Hansson 提交于
-
- 16 12月, 2015 10 次提交
-
-
由 David Heinemeier Hansson 提交于
Indeed we need this to be an engine for the internal assets to work
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
It should be configured through the railtie
-
由 Rafael Mendonça França 提交于
This will decouple Action Cable from Rails.
-
由 Rafael Mendonça França 提交于
Otherwise assets will not work
-
- 15 12月, 2015 4 次提交
-
-
由 Javan Makhmali 提交于
-
由 David Heinemeier Hansson 提交于
-
由 Rafael Mendonça França 提交于
The application can have more than one ApplicationController and we want Action Cable helpers in all controllers and their views so we should hook in the same place that others helpers.
-
由 Rafael Mendonça França 提交于
-
- 14 12月, 2015 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-