greenlight/app/controllers/main_controller.rb
joshua-arts 1bcd176285 styling
2018-05-31 22:15:18 -04:00

16 lines
291 B
Ruby

class MainController < ApplicationController
#before_action :redirect_to_room
# GET /
def index
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