<p>After upgrading a rails 1.2 website to 2.1, the <a href="http://agilewebdevelopment.com/plugins/exception_notifier" rel="noreferrer">ExceptionNotifier plugin</a> no longer works, complaining about this error:</p>

<blockquote>
  <p>ActionView::TemplateFinder::InvalidViewPath:  Unprocessed view path
  found:
  "/path/to/appname/vendor/plugins/exception_notification/lib/../views".
  Set your view paths with #append_view_path, #prepend_view_path, or #view_paths=.</p>
</blockquote>

<p>What causes it and how do I fix it?</p>

[{'answer_id': 1026, 'author': 'Orion Edwards', 'author_id': 234, 'author_profile': 'https://Stackoverflow.com/users/234', 'pm_score': 3, 'selected': False, 'text': "<p>This was caused by a change in rails 2.1 which prevents rails from loading views from any arbitrary path for security reasons.</p>\n\n<p>There is now an updated version of the plugin on github, so the solution is to use that.</p>\n\n<hr>\n\n<p>The old solution here for posterity</p>\n\n<p>To work around it, edit <code>init.rb</code> under your <code>vendor/plugins/exception_notification</code> directory, and add the following code to the end</p>\n\n<pre><code>ActionController::Base.class_eval do\n  append_view_path File.dirname(__FILE__) + '/lib/../views'\nend\n</code></pre>\n\n<p>This adds the ExceptionNotifier plugins' views folder to the list, so it is allowed to load them.</p>\n"}, {'answer_id': 171170, 'author': 'Grant Hutchins', 'author_id': 6304, 'author_profile': 'https://Stackoverflow.com/users/6304', 'pm_score': 1, 'selected': True, 'text': '<p>You ought to upgrade to the newest Exception Notification plugin which is in <a href="http://github.com/rails/exception_notification/tree/master" rel="nofollow noreferrer">its new home at GitHub</a>.</p>\n'}]
['https://Stackoverflow.com/questions/1024', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/234/']