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

The Archive Base Latest Questions

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

I can open the view after running rails server and I see the newly

  • 0

I can open the view after running rails server and I see the newly created text field for billing_name as seen below and it works just fine.

views/registrations/new.html.erb

<h2>My New Signup</h2>

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

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

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

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

<p><%= f.label :billing_name, 'Billing Name' %><br />
<%= f.text_field :billing_name %></p>

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

When I run my specs, however, it appears to be looking at the default devise view and cannot find that newly created billing_name field. If I save_and_open_page before trying to access that field in my spec it shows the default devise registration page, even though when I run rails server -e test, it displays my new customized view.

Here is the spec:

specs/requests/registration_spec.rb

require 'spec_helper'

describe "Registraion" do
  describe "GET /signup" do
    it "allows signup with proper credentials" do
      visit signup_path

      fill_in "user_email", :with => "sample@email.com"
      fill_in "user_password", :with => "password"
      fill_in "user_password_confirmation", :with => "password"
      save_and_open_page
      fill_in "user_billing_name", :with => "First Last"
    end
  end
end

And my spec helper is just the basic one that is auto-generated:

specs/spec_helper.rb

ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'

Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}

RSpec.configure do |config|
  config.mock_with :rspec

  config.fixture_path = "#{::Rails.root}/spec/fixtures"

  config.use_transactional_fixtures = true
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-22T00:51:16+00:00Added an answer on May 22, 2026 at 12:51 am

    When you override the Devise controllers, be sure to also override the devise_for routes.

    For example (in routes.rb):

    devise_for :users, :controllers => { :registrations => 'registrations' }
    

    The Devise wiki also has an example.

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

Sidebar

Related Questions

I have MySQL running such that I can open a client command line and
I've some memory issues with a view controller that contains a text field. Brief
When I open a view with presentModalViewController, a back button that I created while
I'm running Windows 7 x86, and VS2008 1) In Server View panel, right click
I created a web view to open google maps. I got no problems getting
I can open the DefaultTemplate.xaml that was installed as part of our TFS 2010
I realise that you can open the google maps app ready for directions by
If I can open a connection to an MS Access file in C#, how
I have a form that can open a sub form (with ShowDialog ). I
Can someone spot the problem with this implementation? I can open it up in

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.