Skip to content

Instantly share code, notes, and snippets.

@hiendinhngoc
Last active August 29, 2015 14:26
Show Gist options
  • Save hiendinhngoc/2ac40be867a0593bc2e8 to your computer and use it in GitHub Desktop.
Save hiendinhngoc/2ac40be867a0593bc2e8 to your computer and use it in GitHub Desktop.
devise error

Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
=> The problem may be that you have not defined default_host for test environment. Define default_host inside:
config/environments/test.rb like this:

config.action_mailer.default_url_options = {:host => "localhost:3000"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment