upgrade rails to final version

restructure subject's list