aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2019-04-01 13:09:20 +0200
committerGitHub <noreply@github.com>2019-04-01 13:09:20 +0200
commitd3a6277fd60b73ecdf1ad52db97cd9808c2ab2a8 (patch)
tree7657fc6211a7de54b7a9851385032bb43e9b1864 /guides
parente9e976fbc4c35e5800a10d26f01aaa9c70227de7 (diff)
parent4f5949cf9f96938086338fe8f7af5af34cc21daa (diff)
downloadrails-d3a6277fd60b73ecdf1ad52db97cd9808c2ab2a8.tar.gz
rails-d3a6277fd60b73ecdf1ad52db97cd9808c2ab2a8.tar.bz2
rails-d3a6277fd60b73ecdf1ad52db97cd9808c2ab2a8.zip
Merge pull request #35815 from sharang-d/update-action-cable-docs
url -> URL in Action Cable guide [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/action_cable_overview.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/action_cable_overview.md b/guides/source/action_cable_overview.md
index 7bf6a73797..f1e2a0081f 100644
--- a/guides/source/action_cable_overview.md
+++ b/guides/source/action_cable_overview.md
@@ -190,15 +190,15 @@ This will ready a consumer that'll connect against `/cable` on your server by de
The connection won't be established until you've also specified at least one subscription
you're interested in having.
-The consumer can optionally take an argument that specifies the url to connect to. This
+The consumer can optionally take an argument that specifies the URL to connect to. This
can be a string, or a function that returns a string that will be called when the
WebSocket is opened.
```js
-// Specify a different url to connect to
+// Specify a different URL to connect to
createConsumer('https://ws.example.com/cable')
-// Use a function to dynamically generate the url
+// Use a function to dynamically generate the URL
createConsumer(getWebSocketURL)
function getWebSocketURL {