updated rails for security purposes