diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-22 11:11:47 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-22 11:11:47 +0100 |
commit | a381add01f17aa6331ba4ef18006a9afc48b7476 (patch) | |
tree | 6dd33d6e386133d48c29801b5560b308ef0883bd | |
parent | 0d1d50c2db40ea1a9d3bebfb0c35da43bbd4d27f (diff) | |
download | rails-a381add01f17aa6331ba4ef18006a9afc48b7476.tar.gz rails-a381add01f17aa6331ba4ef18006a9afc48b7476.tar.bz2 rails-a381add01f17aa6331ba4ef18006a9afc48b7476.zip |
[ci skip] Steal `ActionCable.server` mounting from routes template.
Mounting it as prescribed here:
https://github.com/rails/rails/blob/0d1d50c2db40ea1a9d3bebfb0c35da43bbd4d27f/railties/lib/rails/generators/rails/app/templates/config/routes.rb#L5
-rw-r--r-- | actioncable/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actioncable/README.md b/actioncable/README.md index 42fbc755ae..c7420d48bc 100644 --- a/actioncable/README.md +++ b/actioncable/README.md @@ -399,12 +399,12 @@ The above will start a cable server on port 28080. Remember to point your client ### In app -If you are using a threaded server like Puma or Thin, the current implementation of ActionCable can run side-along with your Rails application. For example, to listen for WebSocket requests on `/cable`, match requests on that path: +If you are using a threaded server like Puma or Thin, the current implementation of ActionCable can run side-along with your Rails application. For example, to listen for WebSocket requests on `/cable`, mount the server at that path: ```ruby # config/routes.rb Example::Application.routes.draw do - match "/cable", :to => ActionCable.server, via: [:get, :post] + mount ActionCable.server => '/cable' end ``` |