attempting to debug a "no implicit conversion of nil into String (TypeError)"