Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5975181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:02:49+00:00 2026-05-22T21:02:49+00:00

I am trying to set up a custom partial for my exception notification mails

  • 0

I am trying to set up a custom partial for my exception notification mails in a Rails 3 app using the current version (2.4.0) of the exception_notification gem

The README clearly states that “you can customize how each of those
sections are rendered by placing a partial named for that part in your
app/views/exception_notifier directory […] You can even add new sections that
describe application-specific data”

And I am exactly trying these: Altering existing sections and adding a new custom section. When just altering a section, my changed partial (app/views/exception_notifier/_session.text.erb) has no effect. When I add a new custom section, I get the following error in the log:

ActionView::Template::Error (Missing partial exception_notifier/user with {:formats=>
[:text], :handlers=>[:haml, :rjs, :rhtml, :builder, :erb, :rxml], :locale=>[:de]} in
view paths "/usr/lib/ruby/gems/1.8/gems/exception_notification-2.4.0/lib/exception_notifier/views"):

What am I doing wrong? I suspect that the view path is somehow messed up and that the exception_notifier doesn’t bother to look in my /app/views/exception_notifier directory at all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:02:50+00:00Added an answer on May 22, 2026 at 9:02 pm

    When exception_notification is used as a gem, the only view_path configured for the notifier is the gem own view path.
    In order to override default section template or add you your own you will have to add your application template folder in the view path

    Just add to your initializer

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

    If you have your own section partial don’t forget to add it in the middleware options

     Whatever::Application.config.middleware.use ExceptionNotifier,
       :email_prefix => "[Whatever] ",
       :sender_address => %{"notifier" <notifier@example.com>},
       :exception_recipients => %w{exceptions@example.com},
       :sections => %w{my_section1 my_section2} + ExceptionNotifier::Notifier.default_sections
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set a custom order for my term set Cities using the
I'm using jquery 1.5 and html4 standard. I'm trying to set custom attribute which
I am trying to set a custom style to a GWT CellBrowser widget using
I am trying to set a custom class to an Iterator through the setInfoClass
I am trying to set an image as the background of a custom UIButton.
I'm trying to create a custom object that behaves properly in set operations. I've
I am trying to read a custom (non-standard) CSS property, set in a stylesheet
Trying to set up caching on our datasets - we're using clr stored procedures
I am trying to set custom step (interval) to my Line Chart's horizontal axis.
I'm trying to set custom 'name' attribute in django form. I've been trying this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.