<%= (line.match(/^([^:]+)/)[1] rescue 'unknown').sub(/\/((opt|usr)\/local\/lib\/(ruby\/)?(gems\/)?(1.8\/)?(gems\/)?|.+\/app\/)/, '') %> <% unless line.match(/\.erb:/) %> in "<%= line.match(/:in `(.+)'$/)[1] rescue '?' %>" <% else %> (ERB Template) <% end %> | <%=lineno%> | |
<% (__caller_lines__(file, lineno, 5) rescue []).each do |llineno, lcode, lcurrent| %> <%= llineno %><%='' if llineno==lineno.to_i %><%= lcode.size > 90 ? CGI.escapeHTML(lcode[0..90])+'......' : CGI.escapeHTML(lcode) %><%='' if llineno==lineno.to_i %> <% end %> |