title: Creating confirmation link for Devise
body: <p>Sometimes our users' confirmation emails get hung up, and I need to generate a confirmation link to send to them manually. I grabbed the code from Devise's mail view, but the link it generates is not the same that gets generated by the auto-generated confirmation email:</p>
  
  <p>Code from Devise's confirmation mailer view:  </p>
  
  <pre><code>&lt;p&gt;&lt;%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token =&gt; @token) %&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Example confirmation link:<br>
  <strong><code>http://myapp.com/confirmation?confirmation_token=dTDYagcDbfJehEJPThRi</code></strong></p>
  
  <p>Code I'm using in custom confirmation link generator:  </p>
  
  <pre><code>&lt;p&gt;&lt;%= link_to 'Confirm my account', confirmation_url(@user, :confirmation_token =&gt; @user.confirmation_token) %&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Example confirmation link (Different from above- doesn't work):<br>
  <strong><code>http://myapp.com/confirmation?confirmation_token=162baabc80329f01209297af8c49a42e1fdf9066ffef412322b509bc5967052d</code></strong></p>
  
  <p>How can I generate a Devise confirmation link?</p>