This statement is equivalent to
user = user || User.new
which is equivalent of
user = user ? user : User.new
It will assign the value of User.new to the variable user if and only if user is nil. If it isn't, the contents of user will remain unchanged.