do not use AND or OR in rb. use && ||.