finished chapter 5 of rails tutorial