The Minstermen suffered a blow to their promotion push last Saturday when they were well-beaten 4-1 at Curzon Ashton.
York are still sixth in the National League North, however, and looking good for a play-off place.
Gray was keen to point out that the Curzon horror show was unacceptable but he is keeping the faith with the players that have secured six wins in ten games.
“It was a horrendous weekend but you don't become a bad team overnight,” the boss told the club’s website.
“You have got to put some trust in the players. Within the last eight to nine games, we have had some really strong performances and one very, very, very poor performance.
“The players understand the disappointment that the fans had. They were let down. But, equally, we have got to turn it around, and we have got to reverse that now.
“We have spent a lot of time on the training ground, working on disciplined performance, mentality, and making sure that doesn't happen again. It can't happen again. The boys have been great and their reaction has been fantastic.”
For more news, reaction and action from across the National League, like us on Facebook and follow us on Twitter and Instagram.