addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrosseditemptyheartfacebookfolderfullheartglobegmailgoogleimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Re: [ruby-99] customizing exception notifier to list

From: Carlos
Sent on: Friday, January 1, 2010 11:17 PM

I believe it has kicked in, but the contexts are different.

Use ruby:

What i did is to create an attribute (not db backed) to the class or classes in question that raise errors and that gets passed around to the point the view needs it.

Amahi - Making Home Networking Simple -

From: Todd <[address removed]>
To: [address removed]
Sent: Fri, January 1,[masked]:04:53 PM
Subject: [ruby-99] customizing exception notifier to list

I'm using the exception notifier and restful-authentication plugins on a rails project. I wanted to customize the error message emails that I get from exception notifier. I've been successful except for one item. I'd like to show the current_user id if the user is logged in. However, it appears that at the time the exception notifier is being executed, restful-authentication hasn't kicked in yet as I'm getting the error:

undefined local variable or method `current_user' for #<ActionView::Base:0xb717e9c4>)

Has anyone solved this?



Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Todd ([address removed]) from Silicon Valley Ruby Meetup.
To learn more about Todd, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Inc. PO Box 4668 #37895 New York, New York[masked] | [address removed]

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy