Sha256: c8c6fb65c9022f6019a48470c15de43c8d5030f87c0373b49b7322650ac0709e
Contents?: true
Size: 1013 Bytes
Versions: 11
Compression:
Stored size: 1013 Bytes
Contents
<% use_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_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 %> <%= render layout: 'cms/application/page_title' do %> <%= link_to "Back", :back, class: 'btn btn-small right' %> <% end %> <div class="cms_error padded row-fluid"> <h2>Message</h2> <pre><%=h exception.message %></pre> <h2>Stacktrace</h2> <pre><%=h exception.backtrace.join("\n") %></pre> </div>
Version data entries
11 entries across 11 versions & 2 rubygems