fixed some errors
updated Rails