It also depends on the fish itself, there could be a speices that is said to always eat ____, but every particular fish does its own thing... sadly it can also be the other way too.
A flame in a 24 gallon..... I say no. Too small. I would atleast try a 40 gallon, 30 is stilll pushing it IMO.