The past tense of go off the rails is went off the rails.
The third-person singular simple present indicative form of go off the rails is goes off the rails.
The present participle of go off the rails is going off the rails.
The past participle of go off the rails is gone off the rails.