Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5966829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:51:19+00:00 2026-05-22T19:51:19+00:00

I set up Devise and am able to create a profile. When I create

  • 0

I set up Devise and am able to create a profile. When I create the profiles and try to log in, I get an error message that I have not confirmed my account,

I never got the email which I am supposed to confirm my own account. Did I go wrong in selecting such an option, or not enabling Devise to email me?

Here is the migration I used to make it:

class DeviseCreateUsers < ActiveRecord::Migration
  def self.up
    create_table(:users, :options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8') do |t|
      t.database_authenticatable :null => false
      t.recoverable
      t.rememberable
      t.trackable
      t.confirmable
      t.encryptable
      t.column "first_name", :string  
      t.column "last_name", :string
      t.column "organization_name", :string

      t.timestamps
    end

    add_index :users, :email,                :unique => true
  end

  def self.down
    drop_table :users
  end
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:51:20+00:00Added an answer on May 22, 2026 at 7:51 pm

    In development mode, you have to add this line to config/environments/development.rb

    config.action_mailer.default_url_options = { :host => 'localhost:3000' }

    Then, check your server logs to see the mail. You should find something like that:

    Rendered devise/mailer/confirmation_instructions.html.erb (19.5ms)

    Sent mail to example@mail.com (21951ms)

    Date: Thu, 26 May 2011 12:56:55 +0200

    From: sender@mail.com

    Reply-To: sender@mail.com

    To: example@mail.com

    Message-ID: <4dde31f7944bd_5ac277e0e4785c6@L-Portable.mail>

    Subject: Confirmation instructions

    Mime-Version: 1.0

    Content-Type: text/html;

    charset=UTF-8

    Content-Transfer-Encoding: 7bit
    <p>Welcome example@mail.com!</p>
    <p>You can confirm your account through the link below:</p>
    <p><a href="http://localhost:3000/users/confirmation?confirmation_token=Hi0tyRQU8cCFpAbatYFf">Confirm my account</a></p>
    

    You also need to put this line in config/initializers/devise.rb

    config.mailer_sender = "sender@mail.com"
    

    If you REALLY don’t have this mail in your logs, you can still validate your account by taking the value of confirmation_token in your DB and go to this link

    http://localhost:3000/users/confirmation?confirmation_token= #PUT_YOUR_TOKEN_HERE
    

    And that should do the trick.

    Cheers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to devise a method that will be able to classify a given
I'm new to rails, and even more new to devise. I have set up
I have an application that is set up so that if the user selects
I was very surprised to get this error today, as it's one that I've
I was very surprised to get this error today, as it's one that I've
how to set iPhone device to stay active ( to not lock ) while
I am trying to set a javascript date so that it can be submitted
I would like to develop a mobile application that is able to access all
I have a linux box with a bank of modems and need to create
I need to ship some Java code that has an associated set of data.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.