transposing the logic onto a new user erb