title: How to let user activate account through devise confirmations email link locally
body: <p>I am trying to confirm user accounts in test mode while using devise and rails. Here's the scenario. I changed the devise confirmation email that is sent into a partial that is rendered after a user has successfully signed up. Problem is it shows the following error "undefined method email". Here's my confirmation partial.<pre><p>Welcome &lt;%= @resource.email %>!</p></p>
  
  <p>You can confirm your account through the link below:</p>
  
  <p><p>&lt;%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p></pre>. And below is my application_helper in order to access the resource details. <pre>def resource_name
          :user
      end</p>
  
  <code>def resource
      @resource ||= User.new
  end
  
  def devise_mapping
      @devise_mapping ||= Devise.mappings[:user]
  end&lt;/pre&gt; 
  </code></pre>