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

  • SEARCH
  • Home
  • 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 7583989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:48:53+00:00 2026-05-30T18:48:53+00:00

In my application I currently have the ability to create a user which then

  • 0

In my application I currently have the ability to create a user which
then begins a session and sends an email confirmation to the email
address. Whilst this is all good I wish to make it a little more
advanced.

What I wish to do is to have the ability of created the user and then
the email gets sent that requires the user to verify through the email.
Once they click confirmation link in the email the user is then registered to the
database and then is able to log in. I want this link to go to the create function.

How would I go about doing so?

If my current code is needed then I can provide.

I have this in my controller/create at the moment:

def create
@user = User.new(params[:user])

respond_to do |format|
  if @user.save
    Notifier.user_created(@user).deliver
    session[:user_id] = @user.id
    format.html { redirect_to @user, notice: 'User was successfully created.' }
    format.json { render json: @user, status: :created, location: @user }
  else
    format.html { render action: "new" }
    format.json { render json: @user.errors, status: :unprocessable_entity }
  end
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-30T18:48:55+00:00Added an answer on May 30, 2026 at 6:48 pm

    Waiting to save the user to the database is a nearly impossible thing to do with the stateless manner that the web operates in, however, that doesn’t mean it can’t be done.

    I’d recommend using an extra field in your user table, called something like confirmed. Have it initialize to false, and then have the confirmation form simply look up the user and change confirmed to true.

    This will allow you quickly tell if a user has confirmed themselves and you can use it to make decisions like whether or not they are allowed to log in.

    In terms of people who never confirm themeselves, you write a rake task that ran every 5 days or so and just delete any users that have yet to confirm themselves, using something like resque_scheduler or a cron job.

    Hope this is a start to your solution.

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

Sidebar

Related Questions

I currently have a 32-bit .Net application (on x86 Windows) which require lots of
I would like to create the ability for a user to have opened more
I am currently looking to create an application in Android where a user can
In an alternate application, the user has the ability to update their address and
I am working on splitting out an existing, working application that I currently have
We currently have an application that depends largely on stored procedures. There is a
I currently have an application in the play store for both tablets and smartphone
I currently have an application that uses a browserfield to access an internet page
I currently have a UINavigationController based application that works just fine. I'd like to
I currently have an iPhone application with a tabbar and multiple viewcontrollers. All the

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.