janean watson

  • Archive
  • RSS

Blog: "Called id for nil, which would mistakenly be 4"

mehulkar:

I’ve gotten this error so many times while building Rails applications and it didn’t make any sense. It usually appeared when I was trying to call Some_Object.id and the object wasn’t assigned correctly, so in essence I was calling .id on nil. But I had no idea why that would “mistakenly be 4”.

…

  • 10 months ago > mehulkar
  • 2
  • Permalink
  • Share
    Tweet

2 Notes/ Hide

  1. janean-watson reblogged this from mehulkar
  2. devbootcamp reblogged this from mehulkar
  3. mehulkar posted this
← Previous • Next →

About

janean watson
  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr