Hi.
I am using rails 2.3.5
I just installed exception_notification 2.3.3.0 using ‘sudo gem install
exception_notification’
I have add config.gem “exception_notification” in environment.rb and
‘include ExceptionNotification::Notifiable’ in application_controller.rb
Now I am trying it out in development environment.
It seems to catch my exception but fails to send email, here is the
stacktrace found in the log:
undefined method find_template' for #<Array:0x7f4cc5727d88> /var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:582:in
candidate_for_layout?’
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/layout.rb:245:in
pick_layout' /var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:566:in
render’
/var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:553:in
render_message' /var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:493:in
create!’
/var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:452:in
initialize' /var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:395:in
new’
/var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:395:in
method_missing' /var/lib/gems/1.8/gems/exception_notification-2.3.3.0/lib/exception_notification/notifiable.rb:64:in
notify_about_exception’
/var/lib/gems/1.8/gems/exception_notification-2.3.3.0/lib/exception_notification/notifiable.rb:49:in
rescue_action_locally' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:152:in
rescue_action_without_handler’
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:74:in
rescue_action' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in
send’
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in
process_without_filters' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:606:in
process’
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:65:in
call_with_exception' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:90:in
dispatch’
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:in
_call' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:in
build_middleware_stack’
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in
call' /var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in
call’
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
cache' /var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in
cache’
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:28:in
call' /var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
call’
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in
call' /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in
call’
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in
call' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in
call’
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:93:in
call' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in
call’
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in call' /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in
synchronize’
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in call' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:114:in
call’
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:34:in
run' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:in
call’
/var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in
call' /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in
call’
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in each' /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in
call’
/var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in
call' /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/content_length.rb:13:in
call’
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/chunked.rb:15:in call' /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:64:in
process’
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in
process_client' /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
each’
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
process_client' /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
run’
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
initialize' /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
new’
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in run' /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
initialize’
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in new' /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
run’
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:34:in
run' /var/lib/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:111 /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require’
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require’
./script/server:3
Does anybody have an idea of what is wrong?
Jarl