When someone is going crazy, acting crazy or engaging in crazy behavior or life choices
Going off the rails
"Man that chick is not handling the break up well. She smashed all his stuff and keyed his car! She's gone rail!"
"That dude is having a mid-life crisis. He's getting all tatted up and partying all night. Dude's gone rail!"