Preheat oven (electric cooker: 225 °C/circulating air: 200 °C/gas: see manufacturer). Cook pasta in 2-3 l boiling salted water (1 teaspoon salt per litre) according to package instructions.
Peel and chop onion and garlic. Fry with minced meat in hot oil until crumbly. Add tomatoes and herbs, bring to the boil, simmer for about 5 minutes. Season with salt and pepper. Drain the pasta, put it with sauce in an ovenproof dish, sprinkle cheese over it.
Bake in a hot oven for 8-10 minutes.