notes and code from following the rails tutorial on http://guides.rubyonrails.org/