How do I quit chewing my nails?

What can I do to drop the habit of chewing my nails? I have already tried painting them, but that does not work!
How do I quit chewing my nails?
Post Opinion