Following ruby on rails tutorial.