diff --git a/app/views/rooms/index.html.erb b/app/views/rooms/index.html.erb index 1393109..de5d59c 100644 --- a/app/views/rooms/index.html.erb +++ b/app/views/rooms/index.html.erb @@ -17,10 +17,6 @@
<%= render @rooms, room: @single_room %>
- <%= turbo_stream_from "users" %> -
- <%= render @users, room: @single_room %> -
<% if @single_room %> diff --git a/app/views/users/_user.html.erb b/app/views/users/_user.html.erb deleted file mode 100644 index fdc4280..0000000 --- a/app/views/users/_user.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -<% current_room = Room.where("name like '%private_#{user.id}_#{current_user.id}%' OR name like '%private_#{current_user.id}_#{user.id}%'").last %> - -" -> -
- -
- <%= user.username.capitalize %> -
-
-
\ No newline at end of file diff --git a/config/cable.yml b/config/cable.yml index 7adbde8..a6dc3e0 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -7,5 +7,5 @@ test: production: adapter: redis - url: <%= ENV.fetch("REDIS_URL") %> + url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> channel_prefix: chatapp_production