Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby User Authentication with Rails Password Resets and Testing Emailing Password Resets

I got more when I generated the mailer than in the video

When I ran rails g mailer notifier I got a lot more than in the video. Here is the output:

      create  app/mailers/notifier.rb
      create  app/mailers/application_mailer.rb
      invoke  erb
      create    app/views/notifier
      create    app/views/layouts/mailer.text.erb
      create    app/views/layouts/mailer.html.erb
      invoke  rspec
      create    spec/mailers/notifier_spec.rb

It created application_mailer.rb which is where the default from address is:

class ApplicationMailer < ActionMailer::Base
  default from: "from@example.com"
  layout 'mailer'
end

Is this because of an updated version of Rails? Is this where I'm supposed to put default_url_options[:host]="localhost:3000"?

1 Answer

Jamie Perlmutter
Jamie Perlmutter
10,955 Points

yes that is where you put it, and honestly I would say it is probably best of an update. I am going through this video now as well. I will let you know if there is anything else complication.