Skip to content
Snippets Groups Projects
Commit 8252b88f authored by Teal's avatar Teal
Browse files

try again with live

parent 329f61ff
No related branches found
No related tags found
No related merge requests found
class ConferenceChannel < ApplicationCable::Channel class ConferenceChannel < ApplicationCable::Channel
def subscribed def subscribed
# conference = Conference.find(params[:id]) conference = Conference.find_by(slug: params[:slug])
# stream_for conference stream_for conference
end end
def unsubscribed def unsubscribed
......
...@@ -7,7 +7,7 @@ current_time = Time.zone.now.in_time_zone(@conference.time_zone) ...@@ -7,7 +7,7 @@ current_time = Time.zone.now.in_time_zone(@conference.time_zone)
# current_time = Time.parse(@conference.days.first.strftime("%Y-%m-%d 11:00")) # current_time = Time.parse(@conference.days.first.strftime("%Y-%m-%d 11:00"))
#current_time = @sessions_by_date[@conference.days.first].first.starts_at.advance(minutes: 5) #current_time = @sessions_by_date[@conference.days.first].first.starts_at.advance(minutes: 5)
%> %>
<%= turbo_frame_tag dom_id(@conference) do %> <%= turbo_stream_from @conference %>
<div> <div>
<h1 class="text-2xl font-bold my-2"><%= @conference.name %></h1> <h1 class="text-2xl font-bold my-2"><%= @conference.name %></h1>
<p class="text-xs mb-6"> <p class="text-xs mb-6">
...@@ -135,4 +135,3 @@ current_time = Time.zone.now.in_time_zone(@conference.time_zone) ...@@ -135,4 +135,3 @@ current_time = Time.zone.now.in_time_zone(@conference.time_zone)
</div> </div>
<% end %> <% end %>
</div> </div>
<% end %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment