Sha256: 687a66a244f260263eff62bb960234cb0b32981f1854a44e5d74745fc443188c

Contents?: true

Size: 958 Bytes

Versions: 32

Compression:

Stored size: 958 Bytes

Contents

<% page_title "Error: #{exception.class}" %>

<%# 
  Note that we have to clear out the existing contents of
  the functions and html_head content because you can have
  an error occur in the view after stuff has been already
  set in those variables
%>

<% @content_for_functions = "" %>
<%= content_for :functions, "<h1>#{ @page_title }</h1>" %>

<% @content_for_html_head = "" %>
<% content_for :html_head do %>
  <style type="text/css">
    .cms_error {
      overflow: auto;
      padding: 10px;
    }
    .cms_error h2 {
      font-size: 18px;
      font-weight: bold;
      line-height: 18px;
      margin-bottom: 5px;
    }
    .cms_error pre {
      font-family: "Monaco", monospace;
      font-size: 12px;
      line-height: 12px;
      margin-bottom: 20px;
    }
  </style>
<% end %>

<div class="cms_error">
  <h2>Message</h2>
  <pre><%=h exception.message %></pre>
  <h2>Stacktrace</h2>
  <pre><%=h exception.backtrace.join("\n") %></pre>
</div>

Version data entries

32 entries across 32 versions & 10 rubygems

Version Path
SFEley-browsercms-3.0.2 app/views/cms/shared/error.html.erb
buzzware-browsercms-3.0.2 app/views/cms/shared/error.html.erb
coredumplings-browsercms-3.0.0 app/views/cms/shared/error.html.erb
nate-browsercms-3.0.210 app/views/cms/shared/error.html.erb
nate-browsercms-3.0.211 app/views/cms/shared/error.html.erb
we5-browsercms-3.0.1.1 app/views/cms/shared/error.html.erb
webficient-browsercms-3.0.1 app/views/cms/shared/error.html.erb
webficient-browsercms-3.0.2 app/views/cms/shared/error.html.erb
webficient-browsercms-3.0.3 app/views/cms/shared/error.html.erb
webficient-browsercms-3.0.4 app/views/cms/shared/error.html.erb
browsercms-3.1.5 app/views/cms/shared/error.html.erb
browsercms-3.1.4 app/views/cms/shared/error.html.erb
browsercms-3.1.3 app/views/cms/shared/error.html.erb
bf4-browsercms-3.1.0 app/views/cms/shared/error.html.erb
drujensen-browsercms-3.2.0 app/views/cms/shared/error.html.erb
browsercms-3.1.2 app/views/cms/shared/error.html.erb
browsercms-3.1.1 app/views/cms/shared/error.html.erb
browsercms-3.1.0 app/views/cms/shared/error.html.erb
we5-browsercms-3.1.0 app/views/cms/shared/error.html.erb
browsercms-3.0.6 app/views/cms/shared/error.html.erb