added config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
 to config/environments/development.rb
Made all my code identical to David's via his commits.