Hi all,
I'm having trouble using the exception_notification with radiant.
The problem seems to be that the plugin's views dir is not in
ActionMailer::Base.view_paths. I was able to hack around the problem
and send an email by adding a line like this:
view_paths << 'radiant_app/vendor/plugins/exception_notification/views'
to radiant's Radiant::MailerViewPathsExtension#full_template_path
(mailer_view_paths_extension.rb:18)
My question is how do I properly tell ActionMailer::Base (which is
what Radiant::MailerViewPathsExtension is extending) about the
exception_notification's views dir? Or is there a better way to have
exception_notifications in radiant?
Thanks, Michael
BTW here is the relevant portion of my stack trace for reference:
Rendering radiant_app/public/500.html (500 Error)
/!\ FAILSAFE /!\ Fri Jun 27 16:08:35 -0400 2008
Status: 500 Internal Server Error
can't convert nil into String
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.7/lib/plugins/extension_patches/lib/mailer_view_paths_extension.rb:87:in
`dirname'
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.7/lib/plugins/extension_patches/lib/mailer_view_paths_extension.rb:87:in
`initialize_template_class'
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.7/vendor/rails/actionmailer/lib/action_mailer/base.rb:502:in
`render'
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.7/vendor/rails/actionmailer/lib/action_mailer/base.rb:494:in
`render_message'
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.7/lib/plugins/extension_patches/lib/mailer_view_paths_extension.rb:65:in
`create!'
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.7/vendor/rails/actionmailer/lib/action_mailer/base.rb:403:in
`initialize'
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.7/vendor/rails/actionmailer/lib/action_mailer/base.rb:352:in
`new'
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.7/vendor/rails/actionmailer/lib/action_mailer/base.rb:352:in
`method_missing'
radiant_app/vendor/plugins/exception_notification/lib/exception_notifiable.rb:95:in
`rescue_action_in_public'
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.7/app/controllers/application.rb:36:in
`rescue_action_in_public'
_______________________________________________
Radiant mailing list
Post:
Radiant@...
Search:
http://radiantcms.org/mailing-list/search/Site:
http://lists.radiantcms.org/mailman/listinfo/radiant