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

  • Home
  • SEARCH
  • 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 4610434
In Process

The Archive Base Latest Questions

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

In my Rake Command I am calling XML to retrieve data. If person_id is

  • 0

In my Rake Command I am calling XML to retrieve data. If person_id is valid, then it saved. But I am getting error.

if !@case.person_id.nil?
    @project.team_members << @person
 end

Error :: rake aborted! undefined method `team_members’ for nil:NilClass

Please Suggest Some Thing !!!

  • 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-22T01:07:51+00:00Added an answer on May 22, 2026 at 1:07 am

    @project is a nil variable and this is why you cannot invoke team_members. Check how you define it. Moreover, you may want to follow the ruby way of doing things. ‘If not’ occasions are better to write like :

    unless @case.person_id.nil?
      ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Now , I execute the command line rake db:migrate on the window OS, but
I am getting this error in my terminal when I execute the command above,
Whenever I run a rake command (i.e. rake routes ) I get this error:
When i try to run the command rake db:create:all it's giving the following error:
I understand the utility of the rake command, but what kinds of custom actions
With Ruby, the migration only use a rake command, but in NodeJS, i'm not
Is there a rake command to wipe out the data in the database tables?
Since I migrated to Snow Leopard I can't run any Rake command from the
I'm trying to get a compile command (rake cucumber) to run with a specific
I'd like to script, preferably in rake, the following actions into a single command:

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.