GithubHelp home page GithubHelp logo

Comments (7)

dukejones avatar dukejones commented on May 28, 2024

I ran across this as well. Thanks for that link. Here is user Nel's excellent fix:

Just add to your initializer

ExceptionNotifier::Notifier.prepend_view_path File.join(Rails.root, 'app/views')

from exception_notification.

gucki avatar gucki commented on May 28, 2024

I ran into this as well - should be fixed asap :)

from exception_notification.

smartinez87 avatar smartinez87 commented on May 28, 2024

As per the README, "you need to inform the gem where the views are. Create an initializer called config/initializers/exception_notifier.rb with the following code:
ExceptionNotifier::Notifier.prepend_view_path File.join(Rails.root, 'app/views')".

This is the best way to do it. When the application loads the lookup_context isn't available yet, and prepending the view path on every request is out of the question. So it makes sense that in the special cases you need this, you have to add the initializer.

Patches are welcome if there's another solution to this I'm not seeing.

from exception_notification.

smartinez87 avatar smartinez87 commented on May 28, 2024

This commit should help in fixing this issue, please test it to see if we can close this issue for good.
bd924ab

Thanks!

from exception_notification.

gucki avatar gucki commented on May 28, 2024

@smartinez87 Works great for me using rails.3.1.0.rc5, thanks! Please release a new gem soon :)

from exception_notification.

smartinez87 avatar smartinez87 commented on May 28, 2024

@pdobb, are we ok to close this issue then?

from exception_notification.

pdobb avatar pdobb commented on May 28, 2024

Yes, and thanks for the help and the nice solution!

from exception_notification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.