Sha256: aae7e0ace2e1cbff62a9d6884d3676e104172c48f8a6c93c912e0eecf79c0963
Contents?: true
Size: 1.68 KB
Versions: 6
Compression:
Stored size: 1.68 KB
Contents
<style type="text/css"> h3 { margin-top: 20px; margin-bottom: 10px; font-size: 18px; } pre { background: #eee; border: 1px solid #ccc; padding: 8px; background: #f8f8f8; } table { border-collapse: collapse; } td { border: 1px solid #ccc; padding: 4px 20px 4px 8px; } </style> <table> <tr> <td><strong>Requested URL</strong></td> <td><a href="<%= @error_report[:url] %>"><%= @error_report[:url] %></td> </tr> <tr> <td><strong>Timestamp</strong></td> <td><%= @error_report[:timestamp].to_s %></a></td> </tr> <tr> <td><strong>Reported by</strong></td> <td><a href="mailto:<%= @from %>"><%= @from %></a></td> </tr> <% if @error_report[:user] %> <tr> <td><strong>User account</strong></td> <td>#<%= @error_report[:user].id %>: <a href="mailto:<%= @error_report[:user].email %>"><%= @error_report[:user].email %></a></td> </tr> <% end %> </table> <h3>Message</h3> <pre><%= @error_report[:message].gsub('<', '<').gsub('>', '>') %></pre> <% if @description && !@description.empty? %> <h3>Description of error</h3> <pre><%= @description %></pre> <% end %> <h3>Params</h3> <pre><%= @error_report[:params].to_yaml %></pre> <% if @error_report[:session] %> <h3>Session data</h3> <pre><%= @error_report[:session].to_yaml %></pre> <% end %> <h3>Backtrace</h3> <pre><%= @error_report[:backtrace].join("\n") %></pre> <h3>Environment</h3> <table> <% @error_report[:env].each do |key,value| %> <tr> <td><strong><%= key %></strong></td> <td><%= (key == 'HTTP_COOKIE' ) ? value.split(/;[\s]*/).reject{|c| c =~ /^[\w\d]+_session=/}.join('<br />') : value %></td> </tr> <% end %> </table>
Version data entries
6 entries across 6 versions & 1 rubygems