Answer the question
In order to leave comments, you need to log in
How to redirect to root_url when passing to ActionCable: event: render_event(@event)?
def create
...
ActionCable.server.broadcast "room_channel_user_#{user.id}",
event: render_event(@event)
...
end
Answer the question
In order to leave comments, you need to log in
Ebash from the WS client side document.location.href="ya_u_mamki_pogramist.ru";
In render_event, you probably have json, so instead of rendering, AMS master ala MyJerkedSerializer.new(@event)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question