diff --git a/app/controllers/rooms_controller.rb b/app/controllers/rooms_controller.rb index 3299605d..254e2783 100644 --- a/app/controllers/rooms_controller.rb +++ b/app/controllers/rooms_controller.rb @@ -61,7 +61,7 @@ class RoomsController < ApplicationController redirect_to current_user.main_room end - # GET /r/:room_uid/start + # POST /r/:room_uid/start def start # Join the user in and start the meeting. opts = default_meeting_options diff --git a/app/views/rooms/show.html.erb b/app/views/rooms/show.html.erb index ba6de82b..a8a3197b 100644 --- a/app/views/rooms/show.html.erb +++ b/app/views/rooms/show.html.erb @@ -28,9 +28,9 @@
<% if @is_running %> -
In Progress
+
In Progress
<% else %> - <%= link_to "Start", start_room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %> + <%= button_to "Start", start_room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %> <% end %>
diff --git a/config/routes.rb b/config/routes.rb index 28a190c9..e2484845 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,7 +6,7 @@ Rails.application.routes.draw do # Extended room routes. scope '/r/:room_uid' do post '/', to: 'rooms#join' - get '/start', to: 'rooms#start', as: :start_room + post '/start', to: 'rooms#start', as: :start_room get '/logout', to: 'rooms#logout', as: :logout_room post '/home', to: 'rooms#home', as: :make_home