upgdate version rails to 4