Just how do I deal with 'Unprocessed sight course located' mistake with ExceptionNotifier plugin in rails 2.1?
After updating a rails 1.2 internet site to 2.1, the ExceptionNotifier plugin no more functions, whining concerning this mistake:
ActionView::TemplateFinder::InvalidViewPath: Unrefined sight course located: "/ path/to/appname/ vendor/plugins/exception _ notification/lib/./ sights". Set your sight courses with #append _ view_path, #prepend _ view_path, or #view _ courses=.
What creates it and also just how do I repair it?
This was brought on by an adjustment in rails 2.1 which protects against rails from filling sights from any kind of approximate course for protection factors.
There is currently an upgraded variation of the plugin on github, so the remedy is to make use of that.
The old remedy below for posterity
To function around it, modify
init.rb under your
vendor/plugins/exception_notification directory site, and also add the adhering to code throughout
ActionController::Base.class_eval do append_view_path File.dirname(__FILE__) + '/lib/../views' end
This includes the ExceptionNotifier plugins' sights folder to the checklist, so it is permitted to load them.