Initial rake test fails

imm's Avatar

imm

17 Dec, 2008 05:07 PM via web

After following the steps provided online and in the plugin install result, I get this (using Rails 2.1. Switching over from using Exception Notifier).

rake aborted! undefined method exceptions_to_treat_as_404' for classClass'

  1. Support Staff 2 Posted by crowdtap on 17 Dec, 2008 06:41 PM

    crowdtap's Avatar

    imm,

    I believe exceptions_to_treat_as_404 is part of Exception Notifier:

    http://dev.rubyonrails.org/browser/plugins/exception_notification/lib/exception_notifiable.rb

    Have you totally removed exception_notification from vendor/plugins?

    Have you removed ExceptionNotifiable from ApplicationController?

    class ApplicationController < ActionController::Base

    include ExceptionNotifiable
    ...
    

    end

    Have you removed any calls to ExceptionNotifier from your environmental configs?

    # defaults to exception.notifier@default.com ExceptionNotifier.sender_address =

    %("Application Error" <app.error@myapp.com>)
    

    # defaults to "[ERROR] " ExceptionNotifier.email_prefix = "[APP] "

  2. 3 Posted by imm on 29 Dec, 2008 05:39 PM

    imm's Avatar

    Thanks for the tip. I found the offending code and now the rake test completes. However, it does not show up online. I think this has something to do with running in the dev environment? Trying to find a past ticket I created when I attempted this once before but haven't found it yet.

  3. 4 Posted by tammersaleh on 29 Dec, 2008 05:56 PM

    tammersaleh's Avatar

    imm,

    I'm going to resolve this. If you find the other question, then comment there (you may have already). otherwise, open a new question with this issue.

    Cheers, Tammer

  4. tammersaleh resolved this discussion on 29 Dec, 2008 05:56 PM.

Comments are currently closed for this discussion. You can start a new one.