rails homework assignment