开发者

Missing template exception_notifier/exception_notification.erb

开发者 https://www.devze.com 2023-02-21 17:16 出处:网络
The following error occurs when an exception is generated.I am using vendor/rails-2.3.10 and ruby 1.8.7

The following error occurs when an exception is generated. I am using vendor/rails-2.3.10 and ruby 1.8.7

Missing template exception_notifier/exception_notification.erb in view path app开发者_JS百科/views

Thanks in advance


The error is telling you that the app is trying to load app/views/exception_notifier/exception_notification.html.erb and can't find it.

The easy (and wrong) solution is to create that file, and maybe put some HTML in it, though possibly an empty file will do.

The correct solution is to look at the documentation for the exception_notifier plugin you appear to have installed, and figure out why it's looking for that view, and either put something relevant there (the plugin probably has an example) or disable rendering of that view when an exception occurs.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号