checked through example rails app