Skip to content

Non Rails frameworks

Robin Daugherty edited this page Jul 30, 2017 · 5 revisions

Frameworks that work

Sinatra

Add the following to the top of your Sinatra application:

require "better_errors"

configure :development do
  use BetterErrors::Middleware
  BetterErrors.application_root = __dir__
end

Frameworks with issues

Hanami

A demonstration of how to use Better Errors with Hanami is in phoffer/hanami-better_errors. However, it demonstrates a bug that currently exists that keeps Better Errors from working.

Middleman

Add the following to config.rb:

require "better_errors"
require "binding_of_caller"

set :show_exceptions, false
configure :development do
  use BetterErrors::Middleware
  BetterErrors.application_root = __dir__
end

There is currently a bug that keeps context information from loading using Middleman.

Clone this wiki locally