What does 'Off the rails' mean?

If someone has gone off the rails, they have lost track of reality.

All idioms have been editorially reviewed, and submitted idioms may have been edited for correctness and completeness.

See also: