basic getcomparisons rails logic and networking