following hartl's rails tutorial