Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to use better_errors in Padrino
# Gemfile
group :development do
gem "better_errors"
gem "binding_of_caller"
# config/boot.rb, after Bundler.require(:default, RACK_ENV)
if Padrino.env == :development
require 'better_errors'
Padrino::Application.use BetterErrors::Middleware
BetterErrors.application_root = PADRINO_ROOT
BetterErrors.logger = Padrino.logger
# config/apps.rb
set :protect_from_csrf, !(Padrino.env == :development)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.