following the Hartl rails tutorial