from another rubu on rails tutorial