going through Learning Rails book