index method in bets controller and user model