Blog: "Called id for nil, which would mistakenly be 4"
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”.
…
2 Notes/ Hide
-
janean-watson reblogged this from mehulkar
-
devbootcamp reblogged this from mehulkar
-
mehulkar posted this