title: Problems With Resetting Password - Devise
body: <p>I'm having problems when resetting a password using Devise.</p>
  
  <p>When I click on 'Send me reset password instructions', I get:</p>
  
  <pre><code>ArgumentError at /users/password
  Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
  </code></pre>
  
  <p>It says that the problem is in <code>/views/devise/mailer/reset_password_instructions.html.erb</code> on line 5.</p>
  
  <p>On line 5 in that file there is:</p>
  
  <pre><code>&lt;p&gt;&lt;%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token =&gt; @resource.reset_password_token) %&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I have no idea how to setup a mailer in Rails although I have tried to. Can anybody help me with this?</p>