title: Devise confirmable, how to resend a confirmation email on click?
body: <p>I'm using devise confirmable. I want to give the user a link to click and resend the confirmation email. Problem is, when the user clicks the link, it isn't going to the devise controller. Is there something I'm missing in the routes.rb file? Here is my setup:</p>
  
  <p><strong>routes.rb</strong></p>
  
  <pre><code>devise_for :users, :controllers =&gt; { :registrations =&gt; "registrations", :sessions =&gt; "sessions", :omniauth_callbacks =&gt; "authentications" }
  </code></pre>
  
  <p><strong>user.rb</strong></p>
  
  <pre><code>devise :omniauthable, :database_authenticatable, :registerable, :confirmable, :recoverable, :rememberable, :trackable, :validatable
  </code></pre>
  
  <p>The view:</p>
  
  <pre><code>&lt;a href="/users/confirmation/new" data-remote="true" data-method="post"&gt;Resend confirmation&lt;/a&gt;
  </code></pre>
  
  <p>Thanks</p>