chapter 3+ of the rails tutorial http://ruby.railstutorial.org/chapters/static-pages#top