Rails chapter2

Finish rails tutorial chapter 2