Sha256: ea8f450d7f23cded86deb77d6cc20994e92a3e087a6709ef9d1e7b09302c02b6

Contents?: true

Size: 1.18 KB

Versions: 3

Compression:

Stored size: 1.18 KB

Contents

<!doctype html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Error!</title>
    <style type="text/css">
      <%= File.read(Gaffe.root.join('app/assets/stylesheets/errors.css')).gsub("\n", ' ').gsub('  ', ' ') %>
    </style>
  </head>
  <body>
    <div id="wrap">
      <h1>Error!</h1>
      <p>This is an error page brought to you by <a href="https://github.com/mirego/gaffe">Gaffe</a>.</p>

      <div class="content">
        <hr>
        <%= yield %>
        <hr>
      </div>

      <% if Rails.env.development? || Rails.env.test? %>
        <p>Original exception (only displayed in <strong>development</strong> and <strong>test</strong> environment):</p>

<pre>
<code><%= @exception.inspect %></code>
</pre>
      <% end %>

      <p>You can overwrite this page by creating these files:</p>

<% handlers = ActionView::Template::Handlers.extensions.map(&:to_s).join(', ') %>
<pre>
<code><%= Rails.root.join('app', 'views', 'layouts', "error.html.<em title='#{handlers}'>handler</em>").to_s.html_safe %></code>
<code><%= Rails.root.join('app', 'views', 'errors', "#{@rescue_response.to_s}.html.<em title='#{handlers}'>handler</em>").to_s.html_safe %></code>
</pre>
    </div>
  </body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gaffe-1.2.0 app/views/layouts/error.html.erb
gaffe-1.1.0 app/views/layouts/error.html.erb
gaffe-1.0.2 app/views/layouts/error.html.erb