Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

for rails actionmailer, any way to debug ActionView::Template::Error errors?

In my rails 3.1 app, I do have

config.action_mailer.raise_delivery_errors = true

in my development.rb file (and, yes, have restarted by local dev server since changing that to true).

However, as I develop new email templates and run into the occasional ActionView::Template::Error I'm not seeing any of the debugging info being put out as to which line threw the error. (As opposed to when one of my normal app views has a problem the log shows the snippet of the haml source with the problem).

IS there a way to turn on similar debugging messages for mailers?

like image 761
jpw Avatar asked Nov 12 '22 21:11

jpw


1 Answers

I use rails console instead of making a web request to test action mailer. It will gives a-lot more info if an error ocures.

$ rails c
> MyMailer::maielr_name( var1, var2 ).deliver!
like image 86
Tyrel Richey Avatar answered Dec 25 '22 17:12

Tyrel Richey