up to section 5.2 of http://guides.rubyonrails.org/getting_started.html