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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:20:26+00:00 2026-05-23T00:20:26+00:00

Totally revising this question, since I fixed the first issue but have ran into

  • 0

Totally revising this question, since I fixed the first issue but have ran into a new one. My code now looks like this-

it 'should return on a partial match of Subject ID' do
  visit newpatient_path
  fill_in :subject_id, :with => "0303"
  click_button "Find Patient"
  response.should redirect_to(searchresult_path())
end

When I run this I get the following error-

  Patients SEARCH patient should return on a partial match of Subject ID
 Failure/Error: fill_in :subject_id,    :with => "0303"
 Webrat::NotFoundError:
   Could not find field: :subject_id
 # ./spec/requests/patients_spec.rb:26:in `block (3 levels) in <top (required)>'

subject_id is the text_field value for the field in question. Not sure why I can’t find it? Thanks in advance!

  • 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-23T00:20:26+00:00Added an answer on May 23, 2026 at 12:20 am

    I am no Webrat expert, but doesn’t the fill_in method expect a String as its first argument? You are passing a Symbol; don’t know whether that’s allowed.

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

Sidebar

Related Questions

Totally new to Cake. I have this table named Content and another one named
Totally confused by this one... We have a WAMPServer installation set up, running a
Totally lost with this one. Here's my code: theColor = [NSString stringWithFormat:@white]; NSLog(@%s, theColor);
Totally stupid question, but I'm writing my first ASP.NET C# web forms application and
Sorry for totally stupid question, but the situation is that I have to make
I am totally new to encryption, so this question might be trivial - however,
I am totally new to SQL . I have a simple select query similar
Are there any good books for a relatively new but not totally new *nix
Totally new to Spring & Java development but working on a project for a
Totally new to Drupal so be gentle please! Let's say I have a number

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.