upto section 5.4 of rails tutorial