Sha256: c017f33582314a1f6ff00c3bdcf3c4fb34600bcce599261fa0d0b201d46ffd7c

Contents?: true

Size: 238 Bytes

Versions: 7

Compression:

Stored size: 238 Bytes

Contents

require 'sinatra'
require 'sinatra/toadhopper'

set :toadhopper, :api_key => "apikey", :filters => /password/

post "/register" do
  session[:user_id] = 42
  raise "Kaboom!"
end

error do
  post_error_to_hoptoad!
  "Ouch, that hurt."
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
toadhopper-sinatra-1.0.5 example.rb
toadhopper-sinatra-1.0.4 example.rb
toadhopper-sinatra-1.0.3 example.rb
toadhopper-sinatra-1.0.2 example.rb
toadhopper-sinatra-1.0.0 example.rb
toadhopper-sinatra-0.10.1 example.rb
toadhopper-sinatra-0.10 example.rb