Input for name should be shown only to anonymous users

This commit is contained in:
Jesus Federico
2016-10-20 00:13:26 +00:00
parent 36d83b99c6
commit 5fecb98d0b
2 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,7 @@ class UsersController < ApplicationController
# PATCH/PUT /users/1.json
def update
if @user.update(user_params)
redirect_to controller: 'landing', action: 'room', name: @user.username
redirect_to controller: 'landing', action: 'room', id: @user.username
else
render :edit
end