Fixed Rails Errors