created rooms and redirects users to correct room

This commit is contained in:
Beatrice Olivera
2018-08-30 14:18:26 +01:00
parent 405d2cd5df
commit 5245f2257d
6 changed files with 80 additions and 519 deletions

View File

@@ -15,6 +15,12 @@
</div>
<div id="my-user-id" data-user-id="<%= current_user.id %>"></div>
<form action="/accept_call" method="post">
<input type="hidden" id="chat-room-id" name="chat_room_id" value=""/>
<input type="submit" id="accept-button" class="btn btn-primary" id="accept-button" style="display: none;" value="ACCEPT CALL"/>
</form>
<%= javascript_pack_tag 'notifications' %>
<button class="btn btn-primary" id="accept-button" style="display: none;">ACCEPT CALL</button>