updated rails for security reasons