some notes from ch 2 & 3 of Hartl's RailsTut