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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:21:50+00:00 2026-06-06T09:21:50+00:00

it should submit form, :driver => :webkit do visit ‘/things/new’ page.should have_content(‘Login’) fill_in ‘user_login’,

  • 0
  it "should submit form", :driver => :webkit do
    visit '/things/new'
    page.should have_content('Login')
    fill_in 'user_login', with: @thing.email
    fill_in 'user_comment', with: @thing.comment
    click_button 'log_in'
    save_and_open_page
    page.should have_content('Thanks!')  
  end

response in browser [internal server error]:

Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id

I’m guessing something in the things_controller or things/_form is unexpectedly nil, but I can’t seem to nail down what it is. The page works fine in development (with populated database)

Is there a way to get more meaningful feedback?

or am I on the wrong track?

  • 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-06T09:21:52+00:00Added an answer on June 6, 2026 at 9:21 am

    there are several things you can do.

    • look into your logs/test.log
    • disable whiny nils and see if a real stack-trace pops up
    • use some introspection like a debugger or pry

    or the hammer-method:

    • put a whole bunch of puts/Rails.logger.debug statements into your code
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On my page I'm using a form which on submit should get some extra
In my iOS application I have made a form that should submit data into
I have a registration form. When I hit the Submit button it should check
I have a form in my MVC application that in theory should submit data
I have 2 buttons in HTML form. And both of them should submit the
In my form, if I click the submit button it should submit. Even if
I have the form to check username availability Where form should submit data only
Please submit only one zip file .Your zip file should contain the following files:
Can anyone help with this strange form submiting in FireFox? So this form should
A friend has pointed me to his old website and says the submit form

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.