Sheriff: Man found riding on railroad tracks faces drug charge