sessions and fixes

This commit is contained in:
Josh
2018-05-22 16:58:11 -04:00
parent f189c98c56
commit 434021239c
10 changed files with 98 additions and 27 deletions

View File

@ -1,9 +1,16 @@
class MainController < ApplicationController
before_action :redirect_to_room
# GET /
def index
@meeting = Meeting.new
end
private
def redirect_to_room
# If the user is logged in already, move them along to their room.
redirect_to room_path(current_user.room.uid) if current_user
end
end