This quote from Gandhi (similar to one made centuries earlier by Lao Tzu), is the typical formulation we learned in Psychology 101: beliefs precede attitude, which precedes behavior, and the conclusion typically arrived at is that in order to change behavior you need to get to the root cause and change beliefs.