You accidentally committed commented out code here.

For what it's worth, in this code `params[:id]` will be whatever is after /users/ in the url.  So, the path of /users/eliza would make `params[:id]` be "eliza".

So, you should be able to use: `@user = User.find_by(username: params[:username])` to find the user.