Hello, I am a newbie in crystal.
I have a trouble to format time to string in render,
I select the time field from db, we can say it
and it should be (Time | Nil)
then when I type
The compiler said the error:
no overload matches ‘Nil#to_s’ with type String
- Nil#to_s(io : IO)
- Object#to_s(io : IO)
How should I do with it?