add readme

This commit is contained in:
Josh
2018-06-13 16:33:23 -04:00
parent bc67d9e1e5
commit 37d9ae4136
3 changed files with 28 additions and 14 deletions

View File

@ -7,6 +7,8 @@ class RoomsController < ApplicationController
# POST /r
def create
redirect_to root_path unless current_user
@room = Room.new(name: room_params[:name])
@room.owner = current_user