码迷,mamicode.com
首页 > 其他好文 > 详细

About debug way for ROR

时间:2014-12-29 18:44:31      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:

The debug is inconvenient for programmer when developer it, there are some little tips for us to improve this situation:

- If you want to debug the bug in the "Model", you can use "rails console" to debug the model;

- If you want to debug "Controller" or "View", you can try one helper method named "debug",the way to use it is:

<%= debug(@event) %>
and the most common way to debug is using the "Logger", it will be saved in the "log/development.log" of you project

Thanks,

Blues



About debug way for ROR

标签:

原文地址:http://my.oschina.net/u/913344/blog/362033

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!