finished chapter 7 of rails tutorial