Most of the dinosaurs ate plants. A rock that contains dinosaur bones also contains fossil pollen and spores that indicates many types of plants existed during the Mesozoic Era. Many of these plants had edible leaves, including evergreen conifers, ferns, mosses, horsetail rushes etc.