Following Michael Hartl's Rails tutorial.