following along with the rails tutorial on railstutorial.org