This repository has been archived on 2021-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
greenlight/app/controllers/main_controller.rb

17 lines
318 B
Ruby

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