update of rails diary app