Cook the pasta as usual in salted water until it is firm to the bite.
For the sauce, fry the onions in oil until translucent, then add the boiled ham and let sizzle a little. Pour the cream on, let the cheese melt in the sauce and then add the spinach. Let it simmer until you have a creamy sauce.
Season with salt, pour the sauce over the pasta and serve.