From a2f034335d13824f30a956e55e60917f3599481e Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Fri, 15 Apr 2016 17:14:33 +0900 Subject: update example to specify the Action Cable mount path [ci skip] Follow up to 8b69f1e --- guides/source/action_cable_overview.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'guides') diff --git a/guides/source/action_cable_overview.md b/guides/source/action_cable_overview.md index d1f17fdce5..0c486bb96c 100644 --- a/guides/source/action_cable_overview.md +++ b/guides/source/action_cable_overview.md @@ -549,12 +549,13 @@ You can change that in `config/database.yml` through the `pool` attribute. ### In App Action Cable can run alongside your Rails application. For example, to -listen for WebSocket requests on `/websocket`, mount the server at that path: +listen for WebSocket requests on `/websocket`, specify that path to +`config.action_cable.mount_path`: ```ruby -# config/routes.rb -Example::Application.routes.draw do - mount ActionCable.server => '/cable' +# config/application.rb +class Application < Rails::Application + config.action_cable.mount_path = '/websocket' end ``` -- cgit v1.2.3