reworking routes

This commit is contained in:
Josh
2018-05-15 11:43:59 -04:00
parent 1ddc3172eb
commit 6cdcd89387
10 changed files with 113 additions and 73 deletions

View File

@ -13,9 +13,7 @@
<% if @room.meeting.is_running? %>
<p>meeting is already running</p>
<% else %>
<%= form_tag join_room_path, method: :get do %>
<%= submit_tag 'Start Meeting' %>
<% end %>
<%= link_to "Start Meeting", start_room_path(@room.uid) %>
<% end %>
<br><br>

View File

@ -1,7 +1,7 @@
<p>The join the meeting, enter a name.</p>
<p>Enter a name to start a session.</p>
<%= form_tag join_meeting_path(room_uid: @meeting.room.uid, meeting_uid: @meeting.uid) do %>
<%= form_tag join_room_path(room_uid: @room.uid) do %>
<%= text_field_tag "join_name" %>
<%= submit_tag "Join" %>
<% end %>