I was trying to do some refactoring and messed things up but now don’t know where or how to debug because it’s not clear where the problem lies.
Some suggestions on how to dig into the error and code would be helpful…thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
In this particular case you’re probably calling .to_s on what you expect to be a DateTime but is in fact a nil:
If this is the case, either track down the missing date and populate it, or only render it if the date is present.