add users controller and intermediate username step

This commit is contained in:
Zachary Chai
2016-10-19 11:47:37 -04:00
parent d26d4a86bd
commit 015dd7cda4
10 changed files with 95 additions and 8 deletions

View File

@ -19,7 +19,7 @@ class LandingController < ApplicationController
@room_name = params[:name]
@user = User.find_by(username: @room_name)
@meeting_token = @room_name
@resource = params[:resource]
@resource = "rooms"
@resource_url = room_url(@meeting_token)
if @user.nil?
redirect_to root_path