Following Michael Hartl's tutorial on rails.