yes, I have add :
 @team = Team.find params[:team_id]
 @user = @team.users.find params[:id]
in function  init_user_object to get @user from @team in UsersController