标签: ruby-on-rails ruby
每当我尝试
logger.info ("REQUEST: \n " + request.to_yaml)
我收到此错误:
can't dump anonymous class Class
查看请求对象中的内容(以可读方式)的最佳方法是什么?
答案 0 :(得分:5)
logger.info ("REQUEST: \n " + request.inspect)