Skip to content

Instantly share code, notes, and snippets.

@namusyaka
Last active December 15, 2017 16:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save namusyaka/8265452 to your computer and use it in GitHub Desktop.
Save namusyaka/8265452 to your computer and use it in GitHub Desktop.
BetterErrors with Padrino 0.12
module Foobar
class App < Padrino::Application
enable :sessions
configure :development do
use BetterErrors::Middleware
BetterErrors.application_root = PADRINO_ROOT
set :protect_from_csrf, except: %r{/__better_errors/\d+/\w+\z}
end
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment