Ruby on rails fuzzy logics over my head