Really weird error hitting my rails app on localhost when I create a new user (using Devise gem) and attempt to get a confirmation email:
ArgumentError in Registrations#create
Showing /Users/matthewvandenboogart/Sites/certlocal/app/views/devise/mailer/confirmation_instructions.html.erb where line #5 raised:
Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
For the record, other emails are sending fine from localhost. The only email that seems to pop this error is the initial confirmation email. To top it off, I'm not seeing the error when code is pushed up to staging (on Heroku).
config/development.rb:
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
Anyone have insights into what may be going on or where to look to resolve? It's an annoying type error that I would like to resolve so one day it doesn't end up happening on production.