Sha256: 9f6d09b4919ee4f24afaa7cd242ac05438ae43badaf46a6a85163249b902534a

Contents?: true

Size: 432 Bytes

Versions: 16

Compression:

Stored size: 432 Bytes

Contents

class ExceptionsApp < Rambulance::ExceptionsApp
  def not_found; end

  def internal_server_error
    render_custom_error_page
  end

  def not_acceptable
    render_custom_error_page
  end

  private
    def render_custom_error_page
      render inline: <<-BODY
        <html>
          <body>
            <h1>Custom error page</h1>
            <p>Something went wrong!</p>
          </body>
        </html>
      BODY
    end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rambulance-3.3.0 test/fake_app/lib/exceptions_app.rb
rambulance-3.2.0 test/fake_app/lib/exceptions_app.rb
rambulance-3.1.0 test/fake_app/lib/exceptions_app.rb
rambulance-3.0.0 test/fake_app/lib/exceptions_app.rb
rambulance-2.3.0 test/fake_app/lib/exceptions_app.rb
rambulance-2.2.0 test/fake_app/lib/exceptions_app.rb
rambulance-2.0.0 test/fake_app/lib/exceptions_app.rb
rambulance-1.1.1 test/fake_app/lib/exceptions_app.rb
rambulance-1.1.0 test/fake_app/lib/exceptions_app.rb
rambulance-1.0.3 test/fake_app/lib/exceptions_app.rb
rambulance-1.0.2 test/fake_app/lib/exceptions_app.rb
rambulance-1.0.1 test/fake_app/lib/exceptions_app.rb
rambulance-1.0.0 test/fake_app/lib/exceptions_app.rb
rambulance-0.6.0 test/fake_app/lib/exceptions_app.rb
rambulance-0.5.0 test/fake_app/lib/exceptions_app.rb
rambulance-0.4.0 test/fake_app/lib/exceptions_app.rb