Following Michael Hartl's tutorial on rails. Chapter 3 on