From 4edabe6ab115c074f66398b1ebb9e63e1ac39f5b Mon Sep 17 00:00:00 2001 From: Ryan W Date: Thu, 16 Dec 2021 14:32:47 -0800 Subject: [PATCH] Add turbo --- app/views/articles/show.html.erb | 2 ++ config/cable.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/articles/show.html.erb b/app/views/articles/show.html.erb index 75923cb..8edacbc 100644 --- a/app/views/articles/show.html.erb +++ b/app/views/articles/show.html.erb @@ -1,3 +1,5 @@ +<%= turbo_stream_from @article %> +

<%= notice %>

<%= render @article %> diff --git a/config/cable.yml b/config/cable.yml index 98a9c4c..34ec0f3 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -1,6 +1,6 @@ development: adapter: redis - url: redis://localhost:6379/1 + url: redis://redis:6379/1 test: adapter: test