```ruby
# Run with:
#   ruby example.rb
# Then browse to http://localhost:7000

require 'rubygems'
require 'ramaze'
require './lib/hoptoad-notifier'

# Set your project's API key here.
# Note that this is not your user API key.
Rack::HoptoadNotifier.trait[ :api_key ] = 'your-api-key-here'

class MainController < Ramaze::Controller
  def index
    session[ :user ] = 'pistos'
    "Hello, World!"
    foo  # cause an exception
  end
end

Ramaze.start```

Set :api_key trait on Ramaze::Helper::HoptoadNotifier .
user
```ruby
# Run with:
#   ruby example.rb
# Then browse to http://localhost:7000

require 'rubygems'
require 'ramaze'
require './lib/hoptoad-notifier'

# Set your project's API key here.
# Note that this is not your user API key.
Ramaze::Helper::HoptoadNotifier.trait[ :api_key ] = '01234567890abcdef01234567890abcd'

class MainController < Ramaze::Controller
  
  def index
    session[ :user ] = 'pistos'
    "Hello, World!"
    foo  # cause an exception
  end
end

Ramaze.start```
assistant