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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:40:24+00:00 2026-05-29T15:40:24+00:00

Hi I am trying to customize the sign up page by adding an additional

  • 0

Hi I am trying to customize the sign up page by adding an additional field, name.

This is done by adding a Profile model to my app.

    class Profile < ActiveRecord::Base
      belongs_to :user
    end

    class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

  # Setup accessible (or protected) attributes for your model
  attr_accessible :email, :password, :password_confirmation, :remember_me, :profile_attributes

  has_one :profile, :dependent => :destroy

  accepts_nested_attributes_for :profile
end

I overrode the registration model:

    # app/controllers/registrations_controller.rb
class RegistrationsController < Devise::RegistrationsController
  def new
    super
    profile = @user.build_profile

  end

  def create
    super   

  end

  def update
    super
  end
end 

And my new sign up page:

    <h2>Sign up</h2>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

  <div><%= f.label :email %><br />
  <%= f.email_field :email %></div>

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

  <div><%= f.label :password_confirmation %><br />
  <%= f.password_field :password_confirmation %></div>

  <div><% f.fields_for :profile do |builder| %>
    <p><%= builder.label :name %></p>
    <p><%= builder.text_field :name %></p>
  <% end %></div>

  <div><%= f.submit "Sign up" %></div>
<% end %>

<%= render "links" %>

However, I am not sure if everything else works, but the registration page still looks the same. That is, it doesn’t show the name input field. How do I fix this?

What am I missing?

  • 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-29T15:40:25+00:00Added an answer on May 29, 2026 at 3:40 pm

    I suspect you did not generate the views. Did you run the following?

    rails generate devise:views
    

    More information on changing views can be found in “Configuring views” on the devise wiki:

    https://github.com/plataformatec/devise
    

    Thanks,

    Tabrez

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

Sidebar

Related Questions

I'm trying to customize the Django Admin. models.py ============= class Question(models.Model): poll = models.ForeignKey(Poll)
I'm trying to customize a wordpress page to include an iframe which give the
I am trying to customize this script so that instead of a user's recent
I'm trying to customize (translate) an active record attribute name in rails 3.1 (first_name).
I'm newbie in WiX and trying to customize dialog queue by adding the new
Just cloned the basic_project and trying to customize by following this - http://pinaxproject.com/docs/0.7/tabs/#ref-tabs Created
I am working on a new app and am trying to customize where Devise
I am trying to customize an Ext.form.Slider in Sencha Touch 1.1. This is my
I am trying to customize the $head variable in my page.tpl.php template, because there
I am trying to customize default TFS build process by adding a step where

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.