personalized rooms page

This commit is contained in:
Zachary Chai
2016-10-18 13:51:05 -04:00
parent 14ad57d4d1
commit 8693ba5860
8 changed files with 54 additions and 2 deletions

View File

@ -2,9 +2,9 @@ class SessionsController < ApplicationController
def create
@user = User.from_omniauth(request.env['omniauth.auth'])
session[:user_id] = @user.id
redirect_to controller: 'landing', action: 'room', name: @user.username
rescue => e
logger.error "Error authenticating via omniauth: #{e}"
ensure
redirect_to root_path
end