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 8223185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:35:48+00:00 2026-06-07T14:35:48+00:00

I am a three week old Rails newbie and I have something that I

  • 0

I am a three week old Rails newbie and I have something that I want to implement but have no idea how to go about it. I’m making an app:

I want a user to enter some sign-up info on the new users view page, then, when they click submit, instead of the user being created and saved in the database right away, instead I want them to be taken to a second webpage where they will be asked for some final verification before they can create their account. Then when they click ‘verify’ and the verification passes, the account is finally created and saved to the database.

This is hard for me because I only know how to make basic forms, where you enter info, hit submit, and you have a new entry in the database. I don’t know how to defer the “user creation” for another webpage, but a friend has mentioned something about http requests, but I still don’t know anything. I’ll post some of my code so far:

My users_controller new definition:

def new
  @user = User.new
  @user.websites.build
end

My users_controller create method:

def create
  @user = User.new(params[:user])
  if @user.save
    sign_in @user
    flash[:success] = "Welcome!"
    redirect_to @user
  else
    render 'new'
  end
end

My users/new.html.erb sign up form:

<% provide(:title, 'Sign up') %>
<h1>Sign up</h1>
<%= render 'shared/error_messages' %>
<%= form_for(@user) do |f| %>

  <%= f.label :email %>
  <%= f.text_field :email %><br/>

  <%= f.label :password %>
  <%= f.password_field :password %><br/>

  <%= f.label :password_confirmation, 'Confirm Password' %>
  <%= f.password_field :password_confirmation %><br/>

  <%= f.fields_for :websites do |builder| %>
    <%= builder.label :url, 'Website URL' %>
    <%= builder.text_field :url %>
  <% end %>

  <%= f.submit "Sign up", :id => 'submit' %>
<% end %>

I’ve never asked a question that’s just asking for advice like this before, so I’m hoping this is the right place to ask. Any and all help is appreciated.

  • 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-06-07T14:35:52+00:00Added an answer on June 7, 2026 at 2:35 pm

    I think you are trying to create a “multistep” form…
    There is a very good railscast about it: http://railscasts.com/episodes/217-multistep-forms?view=asciicast

    However, you might face some validation problems, as you need to validate each step individually. So, take a look also here: http://guides.rubyonrails.org/active_record_validations_callbacks.html#conditional-validation

    I hope it helps…

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

Sidebar

Related Questions

If I come across old code that does if (!this) return; in an app,
I have a good old-style LAMP webapp. A week ago I needed to add
Last week, I get very depressed, I have three big apps in production and
Suppose we have three models PATIENTS, NURSES, and their association model APPOINTMENTS. This week
I'm completely new to Ruby on Rails, have never worked on it, but I
I have a query that works, but it's taking at least 3 seconds to
I am building an Image Gallery app that would fetch about 50 - 60
I have an app that I wrote a couple years ago that uses Canvas/FBML
Three.js is commonly used with WebGL, but I am interested in using its CanvasRenderer,
About three hours ago I started seeing the above error in my production server.

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.