It is easy to cook beets you can boil, steam and more but my favourite is to roast them ..... just wrap the beets individually in foil and place them on a foil lined baking sheet...wait for 40 minutes to an hour depends of the size ...I'm always curious about beets; I like pickled beets, but other than that how do you fix/cook them?
drizzle some olive oil before you wrap them so wont stick to the foil while cooking can add salt and pepper if you like

and sweet potatoes are great this way too you are right
Before wrapping in foil I rubbed it down with butter like I treat a sweet potato instead of OO. I tried some with and without salt....not sure which way I want to go with that.