Search code examples
ruby-on-rails-3deviseactionmailerdevise-confirmable

devise config.action_mailer.default_url_options not working


I have switched over to pow in order to use ssl in development and I want to switch the host configuration in development, however devise continues to send email prefixed with the localhost:3000 domain. Here is what I have in my config/environments/development.rb file:

config.action_mailer.default_url_options = { :host => 'want_freight.dev' }

I have restarted my server and I have grepped my entire application looking for the offending use of localhost:3000 however my search turned up nothing outside of tmp and log files. Does anyone know why this would not be working??


Solution

  • This problem was actually related to the devise_async gem causing conflicts with the mailer, I was able to resolve the issue by removing the gem from my gemfile.