TypeError (class or module required for rescue clause)
The line number in the error is a little misleading, the error is actually coming from this:
rescue e
I think you meant
rescue => e
The line number in the error is a little misleading, the error is actually coming from this:
rescue e
I think you meant
rescue => e