for some odd reason writing user_path instead of @user in the controller wouldn't redirect.