views:

10

answers:

0

Hi,

I'm looking to use rackamole in my rails application to email support when something goes wrong. I've installed the gem and added the relevant code to the application controller.

In my environment.rb file i've added

require 'rackamole'
config.middleware.use Rack::Mole, 
{ :app_name => "My Cool App", :user_key => :user_name } 

I've also added a config file named rackamole.yml and placed that in the config directory. This file contains

email: &email
:from: '[email protected]'
:to: 
- '[email protected]'
- '[email protected]'
:alert_on: 
- <%=Rackamole.perf%>
- <%=Rackamole.fault%>  

development:
:app_name: Killer App
:user_key: :user_name  
:email: *email

How do i tell rackamole to use the configuration settings in my yml file?