re-doing book after reading guides.rubyonrails.org