fixing an error for rails updaded files