following michael hartl's rails tutorial