game = JSON.parse(response.body);
в response.body
{"id":"2","winner_id":null,"status":"1","items":"0","price":"1820","started_at":"2017-05-28 14:57:03","finished_at":"0000-00-00 00:00:00","chance":"0.0","won_items":"NULL","comission":"0","status_prize":"0","rand_number":"0.111892123403201914","created_at":"2017-05-28 13:33:12","updated_at":"2017-05-28 14:57:03","winner":null}
JSON.parse не выполняется, весь код, который написан после - не выполняется. Если напрямую вставить
{"id":"2","winner_id":null,"status":"1","items":"0","price":"1820","started_at":"2017-05-28 14:57:03","finished_at":"0000-00-00 00:00:00","chance":"0.0","won_items":"NULL","comission":"0","status_prize":"0","rand_number":"0.111892123403201914","created_at":"2017-05-28 13:33:12","updated_at":"2017-05-28 14:57:03","winner":null}
, то код выполняется. В чем причина?