2010-06-12 66 views

回答

4

你可以尝试使用:

<%= debug(@array) %> 
在模板文件

或使用类似:在您的控制器

logger.info @array.inspect 

。这会将数组的内容打印到服务器开发日志中。

相关问题