How do bony fish obtain food?

They have to find their food and pray, if they can't do that then they'll probably end up dying, unless their suppose to look bony.