Rails rescue_from 如何获取更详细错误信息

jay_li · 2012年12月12日 · 最后由 zzhattzzh 回复于 2012年12月14日 · 2781 次阅读

SyntaxError in Categories#index

Showing /home/work/focus_mail/app/views/categories/index.html.erb where line #52 raised: /home/work/focus_mail/app/views/categories/index.html.erb:52: syntax error, unexpected $end, expecting '}'

Extracted source (around line #52): 52: <%= form_tag "/categories/update/#{list.id}", :class => 'form-horizontal hidden' , remote: true, :id=> "editlist#{list.id %}" do %> Trace of template inclusion: app/views/categories/index.html.erb

上面的报错 rescue_from 只能获取 exception.message SyntaxError in Categories#index /home/work/focus_mail/app/views/categories/index.html.erb:52: syntax error, unexpected $end, expecting '}'

而怎么样获取 Extracted source (around line #52):这样详细的细节信息?!

exception.backtrace

需要 登录 后方可回复, 如果你还没有账号请 注册新账号