Boil up plenty of salted water. Peel and chop onion and garlic. Knead half of the onion and garlic with mince, salt and pepper. Form small balls from the mixture.
Fry meatballs in hot oil for about 5 minutes and remove. Fry the rest of the onion and garlic in hot frying fat. Sweat tomato paste and flour briefly. Stir in tomatoes and 150 ml water, bring to the boil.
Season with salt, pepper and thyme. Simmer open for about 10 minutes.
Cook the pasta in boiling water for about 10 minutes until al dente. Stir the ricotta into the sauce. Season to taste with salt, pepper and 1 pinch of sugar. Drain the pasta and mix with the sauce and meatballs. Arrange everything together.