a demo from hartl rails tutorial