add end button to views

This commit is contained in:
Zachary Chai
2016-11-04 18:28:52 -04:00
parent e11098c7a9
commit b8c876443f
6 changed files with 53 additions and 3 deletions

View File

@ -1,4 +1,5 @@
class LandingController < ApplicationController
include BbbApi
def index
if params[:resource] == 'meetings'
@ -29,11 +30,15 @@ class LandingController < ApplicationController
def render_room
params[:action] = 'rooms'
@user = User.find_by(username: params[:id])
if @user.nil?
redirect_to root_path
return
end
@meeting_running = bbb_get_meeting_info(@user.username)[:returncode]
render :action => 'rooms'
end