Ruby on rails. Chapter 2