Closed danielkaczmarczyk closed 6 years ago
The code created an error - undefined method 'length' for nil when there was no entry for zipcode. After converting nil to string, the program works as intended.
undefined method 'length' for nil
nil
string
Shot too early - just realised it's being narrated upon in the course
The code created an error -
undefined method 'length' for nil
when there was no entry for zipcode. After convertingnil
tostring
, the program works as intended.