finish rails query exercise in 'solutions.txt'