this is from the rails tutorial.org